VC#

SSL証明書のエラーを回避

http://www.hesperus.net/csharp/sslvalidation.aspx

//System.Net.ServicePointManager.CertificatePolicy = new CertPolicy();
System.Net.ServicePointManager.ServerCertificateValidationCallback = new System.Net.Security.RemoteCertificateValidationCallback(CertificateCallback);

bool CertificateCallback(object sender, System.Security.Cryptography.X509Certificates.X509Certificate certificate, System.Security.Cryptography.X509Certificates.X509Chain chain, System.Net.Security.SslPolicyErrors sslPolicyErrors)
{
return true;
}