We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

The remote certificate is invalid according to the validation procedure

A while back we bought a dll to convert a pdf to text.

Which works very well.

I’m using the dll to connect to my email server

using Aspose.Email.Mail;

using Aspose.Email.Outlook;

using Aspose.Email.Pop3;

using Aspose.Email;

using Aspose.Email.Mime;

but I get below error.

The remote certificate is invalid according to the validation procedure

Am I doing anything wrong?

Hi Joel,

Thank you for contacting Aspose Support team.

Please try ignoring/bypass the SSL certificate and share your feedback with us if it resolves your problem.

Sample Code:

// Register callback method for SSL validation event
ServicePointManager.ServerCertificateValidationCallback += RemoteCertificateValidationHandler;

// This event handler is 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
}

I tried it and works!

Thanks.

Hi,

You are welcome and please feel free to write to us in case of any further query.