Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android SDK SSL Handshake Error on login #2930

Open
DaveInAus opened this issue Nov 20, 2024 · 2 comments
Open

Android SDK SSL Handshake Error on login #2930

DaveInAus opened this issue Nov 20, 2024 · 2 comments

Comments

@DaveInAus
Copy link

DaveInAus commented Nov 20, 2024

Android SDK SSL Handshake Error

Description

When using the FusionAuth Android SDK one receives a javax.net.ssl.SSLHandshakeException: Connection closed by peer on the first attempt of
val authState: FusionAuthState = AuthorizationManager.oAuth(this@TokenActivity) .handleRedirect(intent) when using https

This can be recreated by using the FusionAuth Android SDK Changebank example

Observed versions

1.53.3

Affects versions

Steps to reproduce

Steps to reproduce the behavior:

  1. Download the Android SDK Changebank example
  2. Setup a FusionAuth Instance on Ubuntu with https on port 9013
  3. Open the application on an Android device and login

Expected behavior

should not generate an SSL handshake error on login

Screenshots

Platform

(Please complete the following information)

  • Device: Android
  • OS: Android
  • Browser + version [chrome]
  • Database [MySQL | PostgresSQL] & and version

Community guidelines

All issues filed in this repository must abide by the FusionAuth community guidelines.

Additional context

The application does work in docker on http port 9011

@ColinFrick
Copy link
Collaborator

Hi @DaveInAus

Thanks for reporting this issue. How are you setting up https for FusionAuth?

@DaveInAus
Copy link
Author

Hi @ColinFrick

FusionAuth installed on Ubuntu with standard PostgresSQL database.
Using Port 9013 with Lets Encrypt SSL certificate

Strangely it only fails on the first call to AuthorizationManager.oAuth
try { val authState: FusionAuthState = AuthorizationManager.oAuth(this@TokenActivity) .handleRedirect(intent) Log.i(TAG, "authState: ${authState.toString()}") fetchUserInfoAndDisplayAuthorized() }

subsequent calls to AuthorizationManager.oAuth do however work correctly.

The iOS sample app and web interface work without any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants