[Mono-dev] System.Web.Mail and TLS

Vladimir Krasnov vladimirk at mainsoft.com
Wed Mar 22 03:47:06 EST 2006

Hi Sebastien,

I've imported my server's certificate using certmgr, the import was
successful and I can see it by "certmfr -list" command, but I still get
the same exception.


-----Original Message-----
From: Sebastien Pouliot [mailto:sebastien.pouliot at gmail.com] 
Sent: Tuesday, March 21, 2006 9:12 PM
To: Vladimir Krasnov
Cc: mono-devel-list at lists.ximian.com
Subject: Re: [Mono-dev] System.Web.Mail and TLS

Hello Vladimir,

On Tue, 2006-03-21 at 10:17 -0800, Vladimir Krasnov wrote:
> Hello,
> I'm working now on sending email over SSL connection using
> System.Web.Mail API. This feature requires connection to SMTP server
> be changed to SSL connection after EHLO command. I've implemented
> ChangeToSSLSocket (look attached patch), 

Nice feature.

> but I always get a
> TlsException, even if I have well known certificate from trusted CA.

This has been a common question on the mailing-list. 
Did you read the FAQ on Mono project wiki ?

> Unhandled Exception: System.Web.HttpException: The authentication or
> decryption has failed. ---> System.IO.IOException: The authentication
> decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException:
> Invalid certificate received form server.
> Please take a look at this code and suggest what to do.
> Vladimir Krasnov.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list

More information about the Mono-devel-list mailing list