javassljdbcaixoracle-database

SSL handshake failure while connecting to Database


I am getting SSK handshake failure error when connecting Database using certificates from java jdbc programme. I have the correct client certificates and all getting matched with server . I am also getting the *** Finished message.But after that getting handshake failure. I am using AIX 6.1, IBM JRE 1.8 in client machine and DB is Oracle 19c Can anyone help here.

main, READ: TLSv1.2 Alert, length = 2
main, RECV TLSv1.2 ALERT:  fatal, handshake_failure
main, fatal: engine already closed.  Rethrowing javax.net.ssl.SSLException: Received fatal alert: handshake_failure
main, fatal: engine already closed.  Rethrowing javax.net.ssl.SSLException: Received fatal alert: handshake_failure
main, called closeOutbound()
main, closeOutboundInternal()
main, SEND TLSv1.2 ALERT:  warning, description = close_notify
main, WRITE: TLSv1.2 Alert, length = 2
[Raw write]: length = 7

Solution

  • Upgrade jre resolved the issue . The problem was with the JRE and this would never show clearly in the logs. If you face similar errors try with an upgraded JRE and check.