My Oracle Support Banner

TLS Encryption Not Working Via JKS Jdbc (Doc ID 2771092.1)

Last updated on OCTOBER 21, 2022

Applies to:

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

Symptoms

When JDBC connects to oracle database using TLS1.2 Encryption +JKS it fails with the following error

Caused by: java.io.EOFException: SSL peer shut down incorrectly
       at sun.security.ssl.InputRecord.read(InputRecord.java:505)
       at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:975)


Exception in thread "main" java.sql.SQLRecoverableException: IO Error: Connection closed, Authentication lapse 0 ms.
       at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:874)
       at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:793)
       at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:57)

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.