The request was aborted: Could not create SSL/TLS secure channel.
- by Simon
We are enabled to connect to an https server using WebRequest because of this error message :
The request was aborted: Could not create SSL/TLS secure channel.
We know that the server aint got a valid https certificate with the path used (and we're not even sure if its fully release yet... ) but to bypass this issue, we use the following code that we've taken somewhere here in another post.
[...] {
ServicePointManager.ServerCertificateValidationCallback += new RemoteCertificateValidationCallback(AllwaysGoodCertificate);
}
private static bool AllwaysGoodCertificate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors policyErrors) {
return true;
}
There problem is that server just never valide the certificate and fail we the error ... Anyone have any idea of what should I do?
Thank and sorry for my english ... I'm from Quebec and usualy talk french!