TLS 1.2 not working with Android 5.0, 6.0 + works

EarlBalmesEarlBalmes USMember ✭✭

I'm trying to make a HTTPS request on a 5.0.1 device to but it keeps giving a TrustFailure exception because TLS 1.2 doesn't seem to work. I've tried both the AndroidClientHandler and Managed (HttpClientHandler) with Native TLS 1.2+ as the SSL/TLS implementation in the project settings, but neither of these seem to work. It works fine for Android 6.0+ devices but not for Android 5 devices, any idea why? It says in the documentation that these settings should handle version > 5.0.

Best Answer

  • EarlBalmesEarlBalmes US ✭✭
    Accepted Answer

    Hi @prashantvc, this issue has been resolved and ended up not being related to Xamarin/Android. Our server was missing one of the certificates in the chain which caused some devices to break when running our app.

Answers

  • prashantvcprashantvc USXamarin Team Xamurai

    @EarlBalmes Could you share the full exception stacktrace? It will help us to debug this issue

  • EarlBalmesEarlBalmes USMember ✭✭
    Accepted Answer

    Hi @prashantvc, this issue has been resolved and ended up not being related to Xamarin/Android. Our server was missing one of the certificates in the chain which caused some devices to break when running our app.

Sign In or Register to comment.