When will Mono's TLS 1.2 be merged into Xamarin Android

Hi guys,

As I understand it, Mono now has TLS 1.2 support. http://tirania.org/blog/archive/2016/Sep-30.html

When will it be merged to the Xamarin project - and released?

For more background information, please see my post on stackoverflow: http://stackoverflow.com/questions/40735964/how-can-i-enable-ntlm-and-tls-1-2-with-xamarin-on-android

Best regards,
Christian

Answers

  • EmanueleSabettaEmanueleSabetta ITBeta ✭✭✭

    What about Xamarin.Forms? The Droid version cannot connect to TLS 1.2 web sites.
    This is the error I get:

    Image Loading: Error getting stream for randomuser.me/api/portraits/med/men/85.jpg: 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.Security.Protocol.Tls.TlsException: The authentication or decryption has failed. –

  • Ryan_SouthRyan_South USMember

    I am also looking for more information on this? Is there another solution to using tls 1.2 with android 5.0 or less?

  • MikhailMelnikMikhailMelnik AUMember ✭✭

    It will be awesome, as ModernHttpClient usage still feels a bit hacky.

  • AlbertKAlbertK MYMember ✭✭✭

    Hi,

    I am using the Xamarin.Android.Net.AndroidClientHandler()) and it works with the latest Xamarin 4.2.2.6 and it works. Of course the HttpClient() without the AndroidClientHandler does not work. I guess that will have to wait for the TLS1.2 boringSSL implementation from Xamarin to be release. The one downside of AndriodClientHandler that I can across is it missing the self-signed certificate bypass.

    using (var httpclient = new HttpClient(new Xamarin.Android.Net.AndroidClientHandler()))
            { 
            Uri uri = new Uri("https://jsonplaceholder.typicode.com/posts/1");
            var ret = await httpclient.GetAsync(uri);
            var cont = await ret.Content.ReadAsStringAsync();
            )
    
Sign In or Register to comment.