Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #The #request #Could #create #secure
ADD COMMENT
Topic
Name
7+6 =