Hi, I want to connect to an exchange server 2003 via SSL.
Thank you for using Aspose.Email.
This error message appears if the Exchange Server has a self signed SSL certificate or it is expired. Please use the following approach to avoid such errors and let us know your feedback:
ServicePointManager.ServerCertificateValidationCallback += RemoteCertificateValidationHandler;
// this event handler will be called when SSL certificate is verified
private static bool RemoteCertificateValidationHandler(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
return true; //ignore the checks and go ahead
OK, now it’s all clear for me!