This article describes CERT in detail : http://www.mono-project.com/UsingTrustedRootsRespectfully
And looks not working for me. My program is Web Application, I have no idea how to operate It using System.Net.SmtpClient. I have import the certs by certmgr, like this: certmgr -ssl -m smtps://smtp.gmail.com:465 Any advice? Sebastien Pouliot-2 wrote: > > On Tue, 2008-10-07 at 14:12 +0200, Petit Eric wrote: >> I forget the link to mono web site who sho the example so, whit hope >> it will be helpfull, a link to mine rewrited, (line 83 and 143) : >> http://monoosc.svn.sourceforge.net/viewvc/monoosc/MonoOSC/MonoOSCFramework/Class/VarGlobal.cs?view=markup > > This is not the right way to handle certificates. Answering YES in every > case only leave you vulnerable to most of the attacks SSL/TLS were > designed to protect you from (e.g. man in the middle attack). > > This is known as "Approach #-1: Actively ignore security concerns" from > http://www.mono-project.com/UsingTrustedRootsRespectfully > > Sebastien > >> >> 2008/10/7 Sebastien Pouliot <[EMAIL PROTECTED]>: >> > On Mon, 2008-10-06 at 23:04 -0700, sisic wrote: >> >> Dear all, >> >> >> >> Does mono2.0 support send SSL email? such as gmail account. >> > >> > Yes it does. You simply need to trust the root (certificate) that >> signed >> > the Google certificate. Otherwise you won't be able to connect to the >> > SSL host. >> > >> > Have a look at "man certmgr" and "man mozroot" and/or look at the >> > security FAQ on Mono web site. >> > >> > Sebastien >> > >> >> >> >> >> >> Here is my error logs that the source code running fine in .net 2.0 >> >> framework on windows. : >> >> >> >> Unable to send email ---> System.Net.Mail.SmtpException: Message could >> not >> >> be sent. ---> System.IO.IOException: The authentication or decryption >> has >> >> failed. ---> System.InvalidOperationException: SSL authentication >> error: >> >> RemoteCertificateChainErrors >> >> at System.Net.Mail.SmtpClient.<SmtpClient>m__3 (System.Object >> sender, >> >> System.Security.Cryptography.X509Certificates.X509Certificate >> certificate, >> >> System.Security.Cryptography.X509Certificates.X509Chain chain, >> >> SslPolicyErrors sslPolicyErrors) [0x00000] >> >> at >> >> >> System.Net.Security.SslStream+<BeginAuthenticateAsClient>c__AnonStoreyC.<>m__9 >> >> (System.Security.Cryptography.X509Certificates.X509Certificate cert, >> >> System.Int32[] certErrors) [0x00000] >> >> at >> >> >> Mono.Security.Protocol.Tls.SslClientStream.OnRemoteCertificateValidation >> >> (System.Security.Cryptography.X509Certificates.X509Certificate >> certificate, >> >> System.Int32[] errors) [0x00000] >> >> at >> >> >> Mono.Security.Protocol.Tls.SslStreamBase.RaiseRemoteCertificateValidation >> >> (System.Security.Cryptography.X509Certificates.X509Certificate >> certificate, >> >> System.Int32[] errors) [0x00000] >> >> at >> >> >> Mono.Security.Protocol.Tls.SslClientStream.RaiseServerCertificateValidation >> >> (System.Security.Cryptography.X509Certificates.X509Certificate >> certificate, >> >> System.Int32[] certificateErrors) [0x00000] >> >> at >> >> >> Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.validateCertificates >> >> (Mono.Security.X509.X509CertificateCollection certificates) [0x00000] >> >> at >> >> >> Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.ProcessAsTls1 >> >> () [0x00000] >> >> at Mono.Security.Protocol.Tls.Handshake.HandshakeMessage.Process () >> >> [0x00000] >> >> at (wrapper remoting-invoke-with-check) >> >> Mono.Security.Protocol.Tls.Handshake.HandshakeMessage:Process () >> >> at >> Mono.Security.Protocol.Tls.ClientRecordProtocol.ProcessHandshakeMessage >> >> (Mono.Security.Protocol.Tls.TlsStream handMsg) [0x00000] >> >> at >> Mono.Security.Protocol.Tls.RecordProtocol.InternalReceiveRecordCallback >> >> (IAsyncResult asyncResult) [0x00000] >> >> --- End of inner exception stack trace --- >> >> at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHandshakeCallback >> >> (IAsyncResult asyncResult) [0x00000] >> >> --- End of inner exception stack trace --- >> >> at System.Net.Mail.SmtpClient.Send (System.Net.Mail.MailMessage >> message) >> >> [0x00000] >> >> >> >> Any help are appreciated. >> >> >> >> Best rdgs, >> >> >> >> Suvi@ >> >> >> > >> > _______________________________________________ >> > Mono-list maillist - [email protected] >> > http://lists.ximian.com/mailman/listinfo/mono-list >> > >> >> >> > > _______________________________________________ > Mono-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-list > > -- View this message in context: http://www.nabble.com/mono-2.0-send-mail-to-gmail-account-error-tp19851624p19891025.html Sent from the Mono - General mailing list archive at Nabble.com. _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
