Sending mail encounters AuthenticationException (remote certificate
am 09.04.2008 20:57:57 von 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
Re: Sending mail encounters AuthenticationException (remote certificate is invalid ...)
am 10.04.2008 02:58:11 von DFS
see the ICertificatePolicy interface to build a custom validation
routine, and ServicePointManager.CertificatePolicy to install it.
-- bruce (sqlwork.com)
Afshar wrote:
> 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
Re: Sending mail encounters AuthenticationException (remote
am 10.04.2008 09:12:29 von afshar
On Apr 10, 3:58=A0am, bruce barker wrote:
> see the ICertificatePolicy interface to build a custom validation
> routine, and ServicePointManager.CertificatePolicy to install it.
>
> -- bruce (sqlwork.com)
>
>
>
> Afsharwrote:
> > 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- Hide quoted text -
>
> - 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