Could not convert socket to TLS; nested exception is: javax.net.ssl.SSLHandshakeException
-
My email reports have stopped working. What's odd is that they worked before. Only change has been a restart to Mango.
Mail server connection failed; nested exception is javax.mail.MessagingException: Could not convert socket to TLS; nested exception is: javax.net.ssl.SSLHandshakeException: The server selected protocol version TLS10 is not accepted by client preferences [TLS13, TLS12]
Note the same issue raised by @MattFox a few months ago
https://forum.mango-os.com/topic/5050/javax-mail-messagingexception-could-not-convert-socket-to-tls?_=1632124368011 -
@cbyrne Saw you called my name...
Been a while!
Get yourself a gsuite account if you don't already have one, set up an application only password and use that to send your emails out.Fox
-
@mattfox Hey, good to see you too!
Mailserver isn't google unfortunately. The quick and dirty solution was just to disable TLS in the email settings. Fine for now as we needed to get clients their reports but not exactly ideal going forward.
-
@cbyrne if you can increase your security to TLS 1.2+ you'll be golden.
That's what the error is about, and for it to work I needed port 587.
Best of luck man
Fox
-
@mattfox I wish I could, mail server needs 1.0. Thanks!
-
TLS 1.0 is disabled in newer JDKs, there are ways to re-enable it but I am not going to encourage it.
-
@jared-wiltshire The mailserver isn't mine so I don't exactly have any other option. I'd rather use outdated TLS rather than no TLS. Thanks for the info.
-
@cbyrne said in Could not convert socket to TLS; nested exception is: javax.net.ssl.SSLHandshakeException:
@jared-wiltshire The mailserver isn't mine so I don't exactly have any other option. I'd rather use outdated TLS rather than no TLS. Thanks for the info.
Yep I understand, I would bring it up with whoever runs your mail server though :)
-
@jared-wiltshire Oh I know... that's a whole other issue. I'm painfully aware how silly this is!