title: Mutual SSL working with soapUI but not standalone Java client
body: <p>I am trying to get mutual SSL working from a Java client. My soapUI configuration works where I have specified keystore and truststore in WS-security configurations.</p>
  
  <p>When I do the same with a Java client with the following system params</p>
  
  <pre><code>System.setProperty("javax.net.ssl.keyStore", "D:\\certs\\client_keystore.jks");
  System.setProperty("javax.net.ssl.keyStorePassword", "changeit");
  System.setProperty("javax.net.debug", "all");
  System.setProperty("javax.net.ssl.trustStore", "D:\\certs\\truststore.jks");
  System.setProperty("javax.net.ssl.trustStorePassword", "trustpass");
  </code></pre>
  
  <p>I get this error</p>
  
  <pre class="lang-none prettyprint-override"><code>main, received EOFException: error
  main, handling exception: javax.net.ssl.SSLHandshakeException: Remote host closed
    connection during handshake
  main, SEND TLSv1 ALERT: fatal, description = handshake_failure
  Padded plaintext before ENCRYPTION: len = 18
  </code></pre>
  
  <p>I have enabled this: <code>System.setProperty("javax.net.debug", "all");</code> </p>
  
  <p>From the debug logs I see this:</p>
  
  <pre class="lang-none prettyprint-override"><code>*** Certificate chain
  ***
  </code></pre>
  
  <p>How do I debug this issue?</p>