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

  • Thread starter Thread starter Afshar
  • Start date Start date
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
 
see the ICertificatePolicy interface to build a custom validation
routine, and ServicePointManager.CertificatePolicy to install it.

-- bruce (sqlwork.com)
 
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
 
Back
Top