Breaking News
Home / Sys Admin / Mac / Received fatal alert: bad_record_mac Received fatal alert: bad_record_mac


When trying to connect to an SSL service using Java the following exception is raised. Received fatal alert: bad_record_mac
        at (http://www.protocol.https.HttpsClient.afterConnect%28DashoA12275%29)
        at (http://www.protocol.https.AbstractDelegateHttpsURLConnection.connect%28D…)
        at (http://www.protocol.http.HttpURLConnection.getInputStream%28HttpURLConne…)
        at (http://www.protocol.https.HttpsURLConnectionImpl.getInputStream%28DashoA…)
        at bea.Util.verifyConnection(
        at bea.Util.main(


This exception normally happens when these is a mismatch between SSL protocol version used between the client and the server. In my case the server only supported v3.0 SSL however the client would start with start v2.0 SSL and would not switch to v3.0 SSL resulting in the above exception. Changing the HTTP Clients to Weblogic or Apache does not help. You need to make sure you client also speaks SSL v3.0 itself to begin with and this can be achieved by setting right parameters when make the SSL call, so explore your HTTP Client API for the same.<!>


Check Also

How to reload DNS Cache in Mac OSX?

In order to refresh the DNS cache in Mac OSX, execute the dscacheutil command with …

Advertisment ad adsense adlogger