Connection to mail server over SSL fails after restricting JBoss EAP to TLSv1.2

Solution Verified - Updated -

Issue

  • Unable to connect to mail server after disabling TLSv1 and TLSv1.1 in java.security file:
ERROR [stderr] (EJB default - 4)|ClientHello.java:564|Produced ClientHello handshake message (
ERROR [stderr] (EJB default - 4) "ClientHello": {
ERROR [stderr] (EJB default - 4)   "client version"      : "TLSv1",
...
ERROR [stderr] (EJB default - 4) javax.net.ssl|SEVERE|EJB default - 4|TransportContext.java:323|Fatal (HANDSHAKE_FAILURE): Couldn't kickstart handshaking (
ERROR [stderr] (EJB default - 4) "throwable" : {
ERROR [stderr] (EJB default - 4)   javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake
ERROR [stderr] (EJB default - 4)    at sun.security.ssl.SSLSocketImpl.handleEOF(SSLSocketImpl.java:1579)
ERROR [stderr] (EJB default - 4)    at sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1409)
ERROR [stderr] (EJB default - 4)    at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1309)
ERROR [stderr] (EJB default - 4)    at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:440)
ERROR [stderr] (EJB default - 4)    at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:548)
ERROR [stderr] (EJB default - 4)    at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:352)
ERROR [stderr] (EJB default - 4)    at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:207)
ERROR [stderr] (EJB default - 4)    at com.sun.mail.iap.Protocol.<init>(Protocol.java:113)
ERROR [stderr] (EJB default - 4)    at com.sun.mail.imap.protocol.IMAPProtocol.<init>(IMAPProtocol.java:111)

Environment

  • Red Hat JBoss Enterprise Application Platform (JBoss EAP)
    • 6.4.20
  • OpenJDK
    • 1.8.382

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content