Reputation: 31
Trying to connect to an imap server from an app that uses javamail to connect. I can't modify the code, but it's throwing the 'Server chose unsupported or disabled protocol: SSLv3' error, and I can't find a property that I can override to enable that protocol. The server I'm connecting to does not support TLSv1 (yes, it's old).
Upvotes: 3
Views: 3287
Reputation: 122669
You should be able to set a specific socket factory using SSLv3 instead of TLSv1 via the mail.smtp.ssl.socketFactory
property of JavaMail (see the Socket Factories section in the JavaMail release notes and MailSSLSocketFactory).
Before returning the SSLSocket
in your SSLSocketFactory
implementation (createSocket
), use setEnabledProtocols
to allow SSLv3
.
Upvotes: 1