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!
EDIT 1
Must said that a partner had made test some weeks ago and it were working fine with something similar than I. The only "major" difference" we've find out it were that I were setup with a Windows 7 environment and my partner a Windows XP ... Can it change something?