title: Received fatal alert: bad_record_mac
body: <p>I have a Java application, from which I am trying to connect to a https url but having issues with SSL ending up with the error:</p>
  
  <pre><code>Received fatal alert: bad_record_mac
  (javax.net.ssl.SSLException)
  </code></pre>
  
  <p>Using <a href="https://gist.github.com/4ndrej/4547029" rel="nofollow noreferrer">SSLPoke</a> there is no issue connection to the URL.</p>
  
  <p>For my Java Application some custom values are set for the keystore</p>
  
  <pre><code>cat sysprop.properties 
  #Mon, 09 Jan 2017 13:43:54 +0000
  #bootstrapModulesResource=moduledefinitions.xml
  property.folder=../config
  
  ssl.port=8443
  jetty.ssl.keystore=../config/keystore
  jetty.ssl.keystore.password=xxxx
  jetty.ssl.key.password=xxxx
  #jetty.ssl.truststore=../config/truststore
  #jetty.ssl.truststore.password=xxxx
  
  application.ip.address=127.0.0.1
  
  bootstrapModulesResource=moduledefinitions.xml
  </code></pre>
  
  <p>As SSLPoke is working fine I assume that its not a Java environment issue but more directly an issue with my set up for the application. Could a custom keystore be the cause for the bad record mac error?</p>
  
  <p>This application is running on a production sever and the issue can't be replicated locally (its working fine locally). </p>
  
  <p>How can I go about further debugging this issue?</p>