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

Sebastien Pouliot sebastien.pouliot at gmail.com
Tue Mar 21 14:11:44 EST 2006


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 to
> be changed to SSL connection after EHLO command. I've implemented method
> 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 ?
http://www.mono-project.com/FAQ:_Security

> Unhandled Exception: System.Web.HttpException: The authentication or
> decryption has failed. ---> System.IO.IOException: The authentication or
> 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