Answers for "httpclient The request was aborted: Could not create SSL/TLS secure channel."

C#
-1

the request was aborted could not create ssl/tls secure channel. c# restsharp

//Add this line of code before RestClient
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;
Posted by: Guest on April-04-2020
0

The request was aborted: Could not create SSL/TLS secure channel.

private void Somewhere() {
    ServicePointManager.ServerCertificateValidationCallback += new RemoteCertificateValidationCallback(AlwaysGoodCertificate);
}

private static bool AlwaysGoodCertificate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors policyErrors) {
   return true;
}
Posted by: Guest on February-01-2021

Code answers related to "httpclient The request was aborted: Could not create SSL/TLS secure channel."

C# Answers by Framework

Browse Popular Code Answers by Language