[Mono-list] Sending mail with smtp.gmail.com
toutu
mlariau at gmail.com
Wed Aug 19 16:04:44 EDT 2009
Hi everybody,
I built a very simple desktop program (no asp), to send email using gmail
smtp.
I am using smtpclient with enablessl and port 587
It works perfectly under windows but raise exception under linux.
After reading comments in this forum I tried :
mozroots --import --ask-remove --machine
certmgr -ssl -m smtps://smtp.gmail.com:465
then
mozroots --import --ask-remove
certmgr -ssl smtps://smtp.gmail.com:465
Note that certmgr warned me that the certicate of CA store had an invalidate
signature. I confirmed the integration of the certificate.
he authentication or decryption has failed.
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__AnonStorey12.<>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]
Help appreciated.
Regards.
--
View this message in context: http://www.nabble.com/Sending-mail-with-smtp.gmail.com-tp25051030p25051030.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list