Sending mail encounters AuthenticationException (remote certificate

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
afshar [ Mi, 09 April 2008 20:57 ] [ ID #1938673 ]

Re: Sending mail encounters AuthenticationException (remote certificate is invalid ...)

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
DFS [ Do, 10 April 2008 02:58 ] [ ID #1939330 ]

Re: Sending mail encounters AuthenticationException (remote

On Apr 10, 3:58=A0am, bruce barker <nos... [at] nospam.com> 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
afshar [ Do, 10 April 2008 09:12 ] [ ID #1939349 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » Sending mail encounters AuthenticationException (remote certificate

Vorheriges Thema: Forms Authentication non-persistent cookie not expiring after closing
Nächstes Thema: RE: ListView EditItem Bug?