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

Vladimir Krasnov vladimirk at mainsoft.com
Tue Mar 21 13:17:01 EST 2006


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), but I always get a
TlsException, even if I have well known certificate from trusted CA.

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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: SmtpClient.cs.patch
Type: application/octet-stream
Size: 6025 bytes
Desc: SmtpClient.cs.patch
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060321/b97f53ce/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SmtpStream.cs.patch
Type: application/octet-stream
Size: 2045 bytes
Desc: SmtpStream.cs.patch
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060321/b97f53ce/attachment-0001.obj 


More information about the Mono-devel-list mailing list