[Mono-list] Preview 2.6.6

sberryman shaun at golfsigma.com
Fri Jul 9 22:06:41 EDT 2010


You could always use the ServicePointManager to accept all SSL certs.
Security risk but I've used it in the past when I've had problems with Mono
and SSL certs.

Simply add the following delegate before you send the email.

ServicePointManager.ServerCertificateValidationCallback = delegate(object
sender, System.Security.Cryptography.X509Certificates.X509Certificate
certificate, System.Security.Cryptography.X509Certificates.X509Chain chain,
System.Net.Security.SslPolicyErrors sslPolicyErrors)
{
     return true;
};

-- 
View this message in context: http://mono.1490590.n4.nabble.com/Preview-2-6-6-tp2279971p2284277.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list