[Mono-aspnet-list] mono 2.6.3 Gmail certificate problem
APS
dev.malst at apsystems.it
Fri Jun 25 11:22:20 EDT 2010
Using mono 2.6.4 VM I'm able to send email using gmail over tls
without problem.
I've the identical problem using a different email provider but not with gmail.
At 16.14 25/06/2010, you wrote:
>Hi,
>
>yes this seems to be an issue that several people are running across,
>including myself. Other discussions have been:
>
>http://lists.ximian.com/pipermail/mono-aspnet-list/2010-June/000788.html
>http://lists.ximian.com/pipermail/mono-devel-list/2010-June/035276.html
>and
>http://stackoverflow.com/questions/2884290/ssl-authentication-error-remotecertificatechainerrors-on-asp-net-on-ubuntu
>
>The only one that I've gotten to work has been to use
>http://ubuntu-tutorials.com/2008/11/11/relaying-postfix-smtp-via-smtpgmailcom/
>
>Joe
>
> >
> > Message: 2
> > Date: Fri, 25 Jun 2010 03:52:26 -0700 (PDT)
> > From: Wien Smit <wiensmit at gmail.com>
> > Subject: [Mono-aspnet-list] mono 2.6.3 Gmail certificate problem
> > To: mono-aspnet-list at lists.ximian.com
> > Message-ID: <1277463146222-2268279.post at n4.nabble.com>
> > Content-Type: text/plain; charset=us-ascii
> >
> >
> > Hi all,
> >
> > i have a fairly simple asp.net website with a contact form all worked fine
> > until Google updated there certificate needed to make use of there gmail
> > smtp server.
> > now i have installed mono 2.6.3 on ubuntu 10.04 with the help of badgerpors
> > and i have imported the certificates with the following results:
> >
> >
> >
> > certmgr -ssl -m smtps://smtp.gmail.com:465
> > Mono Certificate Manager - version 2.6.3.0
> > Manage X.509 certificates and CRL from stores.
> > Copyright 2002, 2003 Motus Technologies. Copyright 2004-2008 Novell. BSD
> > licensed.
> >
> >
> > X.509 Certificate v3
> > Issued from: C=US, O=Equifax, OU=Equifax Secure Certificate Authority
> > Issued to: C=US, O=Google Inc, CN=Google Internet Authority
> > Valid from: 6/8/2009 10:43:27 PM
> > Valid until: 6/7/2013 9:43:27 PM
> > *** WARNING: Certificate signature is INVALID ***
> > This certificate is already in the CA store.
> >
> > X.509 Certificate v3
> > Issued from: C=US, O=Google Inc, CN=Google Internet Authority
> > Issued to: C=US, S=California, L=Mountain View, O=Google Inc,
> > CN=smtp.gmail.com
> > Valid from: 4/22/2010 10:02:45 PM
> > Valid until: 4/22/2011 10:12:45 PM
> > This certificate is already in the AddressBook store.
> >
> > No certificate were added to the stores.
> >
> > if i am correct the certificate is invalid waring is only about the
> > selfsigned
> > so hopefully that would mean that the certificates are there.
> > still when i try to use the contact form and send a mail i get the
> > following:
> >
> >
> > System.Net.Mail.SmtpException: Message could not be sent. --->
> > System.IO.IOException: The authentication or decryption has failed. --->
> > System.InvalidOperationException: SSL authentication error:
> > RemoteCertificateNotAvailable at System.Net.Mail.SmtpClient.m__3
> > (System.Object sender, System.Security.Cryptography.X509Certificates.X509
> > Certificate certificate, System.Security.Cryptography.X509Certificates.X509
> > Chain chain, SslPolicyErrors sslPolicyErrors) [0x00000] in :0 at
> > System.Net.Security.SslStream+c__AnonStorey7.<>m__ 9
> > (System.Security.Cryptography.X509Certificates.X50 9Certificate cert,
> > System.Int32[] certErrors) [0x00000] in :0 at
> > Mono.Security.Protocol.Tls.SslClientStream.OnRemot eCertificateValidation
> > (System.Security.Cryptography.X509Certificates.X50 9Certificate
> certificate,
> > System.Int32[] errors) [0x00000] in :0 at
> > Mono.Security.Protocol.Tls.SslStreamBase.RaiseRemo teCertificateValidation
> > (System.Security.Cryptography.X509Certificates.X50 9Certificate
> certificate,
> > System.Int32[] errors) [0x00000] in :0 at
> > Mono.Security.Protocol.Tls.SslClientStream.RaiseSe
> rverCertificateValidation
> > (System.Security.Cryptography.X509Certificates.X50 9Certificate
> certificate,
> > System.Int32[] certificateErrors) [0x00000] in :0 at
> > Mono.Security.Protocol.Tls.Handshake.Client.TlsSer
> > verCertificate.validateCertificates
> > (Mono.Security.X509.X509CertificateCollection certificates) [0x00000] in :0
> > at Mono.Security.Protocol.Tls.Handshake.Client.TlsSer
> > verCertificate.ProcessAsTls1 () [0x00000] in :0 at
> > Mono.Security.Protocol.Tls.Handshake.HandshakeMess age.Process () [0x00000]
> > in :0 at (wrapper remoting-invoke-with-check)
> > Mono.Security.Protocol.Tls.Handshake.HandshakeMess agerocess () at
> > Mono.Security.Protocol.Tls.ClientRecordProtocol.Pr ocessHandshakeMessage
> > (Mono.Security.Protocol.Tls.TlsStream handMsg) [0x00000] in :0 at
> > Mono.Security.Protocol.Tls.RecordProtocol.Internal ReceiveRecordCallback
> > (IAsyncResult asyncResult) [0x00000] in :0 --- End of inner exception stack
> > trace --- at Mono.Security.Protocol.Tls.SslStreamBase.AsyncHand
> > shakeCallback (IAsyncResult asyncResult) [0x00000] in :0 --- End of inner
> > exception stack trace --- at System.Net.Mail.SmtpClient.Send
> > (System.Net.Mail.MailMessage message) [0x00000] in :0 at
> > website.Contact.btnVer_Click (System.Object sender, System.EventArgs e)
> > [0x00000] in :0
> >
> >
> > the way i read it it seems that i somehow cant find the certificates or
> > something like that
> > anyway someone here who knows what the heck im doing wrong ?
> > Wien Smit is offline Reply With Quote
> > --
> > View this message in context:
> http://mono.1490590.n4.nabble.com/mono-2-6-3-Gmail-certificate-problem-tp2268279p2268279.html
> > Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
>_______________________________________________
>Mono-aspnet-list mailing list
>Mono-aspnet-list at lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
>
>--
>Il messaggio e' stato analizzato alla ricerca di virus o
>contenuti pericolosi da MailScanner, ed e'
>risultato non infetto.
More information about the Mono-aspnet-list
mailing list