Secure Channel failure -the authentication or decryption have failed.

I am using Visual studio for mac to develop a xamarin.forms app.

THis is the inner exception that I am getting :smile:

{System.Net.WebException: Error: SecureChannelFailure (The authentication or decryption has failed.) ---> System.IO.IOException: The authentication or decryption has failed. ---> System.IO.IOException: The authentication or decryption has failed. ---> Mono.Secu…}

Please let me know what can I do to resolve this issue.

Thanks
Nivi

Best Answer

  • nivibhatnivibhat ✭✭
    Accepted Answer

    Finally after playing with different options and researching for 2 days, I found the solution that resolved the issue:

    These settings can be found in Project Properties > Build Options > General tab:

    HttpClient Implementation : Native stack – various networking APIs provided by the underlying platforms (Android, iOS, or macOS).
    and SSL/TLS - set it to Native – TLS 1.2 on both Android, iOS, and macOS.

Answers

  • nivibhatnivibhat Member ✭✭
    Accepted Answer

    Finally after playing with different options and researching for 2 days, I found the solution that resolved the issue:

    These settings can be found in Project Properties > Build Options > General tab:

    HttpClient Implementation : Native stack – various networking APIs provided by the underlying platforms (Android, iOS, or macOS).
    and SSL/TLS - set it to Native – TLS 1.2 on both Android, iOS, and macOS.

Sign In or Register to comment.