The request was aborted: Could not create SSL/TLS secure channel.
Posted
by Simon
on Stack Overflow
See other posts from Stack Overflow
or by Simon
Published on 2010-05-18T18:07:03Z
Indexed on
2010/05/18
18:10 UTC
Read the original article
Hit count: 1465
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!
© Stack Overflow or respective owner