On Wed, 2008-10-08 at 21:29 -0700, Suvi/mg3 wrote: > Hi, all, > > This error was gone finally after many test and search. May the following > step could help those who have save problems. > > 1. mozroots, MONO not shipped with any certs, so we'd better import them. > This is very different with Windows.
Yes, root certificates (at least most of them) are copyrighted and you need a license to re-distribute them. > mozroots --import --ask-remove --machine > > BTW: I'm not test with " mozroots --import --ask-remove ", I download > all certs into machine store. Using the machine store (--machine) solved your ASP.NET problem. This store is visible to all users on a machine. Otherwise the store imported by user "A" won't be seen by the process running ASP.NET (assuming it's executed by another user account). > > 2. certmgr, with gmail smtp server, we could import it first. > > certmgr -ssl -m smtps://smtp.gmail.com:465 > > Also, I'm not testing the User store. > > 3. System.Net.SmtpClient > > EnableSsl = true; > smtp port = 587, use the submission port. > > And , It should work for you. I'm glad you got it working :-) Have fun Sebastien > enjoy. > > Suvi@ > > > > Suvi/mg3 wrote: > > > > Dear all, > > > > Does mono2.0 support send SSL email? such as gmail account. > > > > > > > > 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
