"The ssl protocol specified is not supported" Error Over SSL With IBM JDK (Doc ID 1424544.1)

Last updated on MARCH 08, 2017

Applies to:

JDBC - Version 11.1.0.6 and later
Information in this document applies to any platform.

Goal

JDBC connections over SSL and IBM JDK fail with the following error:


SQL Exception occurred:
java.sql.SQLException: The Network Adapter could not establish the connection
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:199)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:480)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:413)
at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:508)
at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:203)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:510)
at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:275)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:206)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:156)
at JDBCSSLTester.getConnection(JDBCSSLTester.java:81)
at JDBCSSLTester.run(JDBCSSLTester.java:41)
at JDBCSSLTester.main(JDBCSSLTester.java:95)
Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection
at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:328)
at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:421)
at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:630)
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:206)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:966)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:292)
... 10 more
Caused by: oracle.net.ns.NetException: The ssl protocol specified is not supported.
at oracle.net.nt.TcpsConfigure.configureVersion(TcpsConfigure.java:181)
at oracle.net.nt.TcpsNTAdapter.setSSLSocketOptions(TcpsNTAdapter.java:145)
at oracle.net.nt.TcpsNTAdapter.connect(TcpsNTAdapter.java:120)
at oracle.net.nt.ConnOption.connect(ConnOption.java:126)
at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:306)
... 15 more
Caused by: java.lang.IllegalArgumentException: SSLv2Hello
at com.ibm.jsse2.ub.a(ub.java:35)
at com.ibm.jsse2.tb.(tb.java:2)
at com.ibm.jsse2.tc.setEnabledProtocols(tc.java:423)
at oracle.net.nt.TcpsConfigure.configureVersion(TcpsConfigure.java:177)
... 19 more



How to enable successful JDBC connections over SSL using IBM JDK ?

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms