Trusting all certificates using HttpClient over HTTPS

后端 未结 21 2240
北恋
北恋 2020-11-21 04:50

Recently posted a question regarding the HttpClient over Https (found here). I\'ve made some headway, but I\'ve run into new issues. As with my last problem, I

21条回答
  •  灰色年华
    2020-11-21 05:33

    enter image description here

    A sspi failed in xamarin android.

    I found this solution; put this code before you hit on an HTTPS link

    const SslProtocols _Tls12 = (SslProtocols)0x00000C00;
    const SecurityProtocolType Tls12 = (SecurityProtocolType)_Tls12;
    ServicePointManager.SecurityProtocol = Tls12;
    

提交回复
热议问题