After a little search, it looks like you don't need to do anything if the certificate is valid.
If you want to verify the certificate yourself, you can do this:
System.Net.ServicePointManager.ServerCertificateValidationCallback +=
delegate(object sender, System.Security.Cryptography.X509Certificates.X509Certificate certificate,
System.Security.Cryptography.X509Certificates.X509Chain chain,
System.Net.Security.SslPolicyErrors sslPolicyErrors)
{
return true;
};
The above code was obtained from a comment by Rick Strals and will force the client certificate to be accepted.
You can also check the certificate there in this deletet.
Cool stuff!
source
share