You helped me with an issue I had before with your Mail.dll file, hopefully you can help me with this issue.
We use your Mail.dll on both Windows and Linux (under MONO). Under Windows, everything is fine. Under MONO, when we are setup to use Gmail, we cannot receive any messages. We can send ok, so I know the username/password are correct. When we attempt to get messages we get the error: (from the catch below)
"Authenticate as SSL client failed. You might be connecting to non SSL port".
Here is the code where it fails:
Try
imap = New Imap
imap.ConnectSSL("imap.gmail.com", 993) ' for gmail
imap.Login(gGmailUser, gGmailPass)
Catch ex As Exception
WriteMon("Error", "Unable to log into Gmail server: " & ex.Message)
CloseConnection()
Return False
End Try
And the inner exception is:
---> Mono.Security.Protocol.Tls.TlsException: Invalid certificate
received from server. at
Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.LocalValidation
(Mono.Security.Protocol.Tls.ClientContext context, AlertDescription
description) [0x00000] in :0 at
Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.validateCertificates
(Mono.Security.X509.X509CertificateCollection certificates [0x00000]
in :0 at
Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.ProcessAsTls1
() [0x00000] in :0 at
Mono.Security.Protocol.Tls.Handshake.HandshakeMessage.Process ()
[0x00000] in :0
Hopefully there is a simple fix!