SSL Communication From Database Using Jvm Fails with bad_record_mac (Doc ID 1121253.1)

Last updated on OCTOBER 12, 2016

Applies to:

Advanced Networking Option - Version 11.1.0.7.0 and later
JDBC - Version 11.1.0.7 to 11.1.0.7 [Release 11.1]
Oracle Database - Enterprise Edition - Version 11.1.0.7 to 11.1.0.7 [Release 11.1]
Information in this document applies to any platform.

Symptoms

On : 11.1.0.7 version,
Communication with a secure HTTPS  from java code in the database fails with bad_record_mac..

ERROR
-----------------------

SQL> exec testssl;
Exception in thread "Root Thread" javax.net.ssl.SSLException: Received fatal alert: bad_record_mac
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:166)
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:117)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1542)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1025)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1038)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:405)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:170)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:938)
at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.getInputStream(HttpsURLConnectionOldImpl.java:204)
at java.net.URL.openStream(URL.java:1019)
at SecureURL.SecureURL(SecureURL:19)
BEGIN testssl; END;

*
ERROR at line 1:
ORA-29532: Java call terminated by uncaught Java exception: javax.net.ssl.SSLException: Received fatal alert: bad_record_mac
ORA-06512: at "SYS.TESTSSL", line 1
ORA-06512: at line 1



Cause

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