Sending mail encounters AuthenticationException (remote certificateis invalid ...)

A

Afshar

Hi there

I'm sending email via a server that uses SSL. The server has
Certification problems. Whenever I send email I got following
exception:
System.Security.Authentication.AuthenticationException: The remote
certificate is invalid according to the validation procedure.

How can I tell .NET to not check certfication and so get rid of this
exception?


Afshar
 
B

bruce barker

see the ICertificatePolicy interface to build a custom validation
routine, and ServicePointManager.CertificatePolicy to install it.

-- bruce (sqlwork.com)
 
A

Afshar

see the ICertificatePolicy interface to build a custom validation
routine, and ServicePointManager.CertificatePolicy to install it.

-- bruce (sqlwork.com)



Afsharwrote:




- Show quoted text -

Thanks bruce!!

But I'm very newbie at theses topics. Would you give me some
references on ICertificatePolicy and
ServicePointManager.CertificatePolicy?

Afshar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top