title: JMeter load client-side certificate
body: <p>I try to add a <code>p12</code> file to <code>JMeter 3.3</code> configuration to reach a site.
  I added following lines to <code>system.properties</code> file:</p>
  
  <pre><code>javax.net.ssl.keyStoreType=pkcs12    
  javax.net.ssl.keyStore=C:\certs\mycert.p12
  javax.net.ssl.keyStorePassword=mypassword
  </code></pre>
  
  <p>After that I restarted <code>JMeter</code>, but got the same error, <code>javax.net.ssl.SSLHandshakeException</code>. I converted <code>p12</code> file with keytool to <code>jks</code> and added the following lines to same file by replacing previous ones.</p>
  
  <pre><code>javax.net.ssl.keyStore=C:\certs\mycert.jks
  javax.net.ssl.keyStorePassword=mypassword
  </code></pre>
  
  <p>Error message is the same in this case too:</p>
  
  <blockquote>
    <p>Response code: Non HTTP response code:
    javax.net.ssl.SSLHandshakeException Response message: Non HTTP
    response message: Received fatal alert: handshake_failure</p>
  </blockquote>
  
  <p>I use HTTP Client 4 as implementation for HTTP Samplers. When I import same certificate to browser, it is working correctly.</p>
  
  <p>I tried to follow this tutorial too: <a href="https://developer.ibm.com/mainframe/docs/how-to-test-your-apis/how-to-configure-jmeter-to-use-client-side-ssl/" rel="noreferrer">How to configure JMeter to use client side SSL</a></p>