title: SSL keystore path in eclipse
body: <p>In my user home directory there is a <code>.keystore</code> file. Whenever I do <code>keytool -list</code> I get:</p>
  
  <pre><code>Keystore type: JKS
  Keystore provider: SUN
  
  Your keystore contains 0 entries
  </code></pre>
  
  <p>However while running junit tests from Eclipse, the JVM is always referring to this keystore. How can I change this path to another keystore path, for example, <code>C:\Users\abc123\jdk1.8.0_65\jre\lib\security\cacerts</code> from Eclipse.</p>
  
  <p>I have tried</p>
  
  <pre><code>Debug As --&gt; Debug Configuration --&gt; Junit --&gt; VM arguments
  
  -Djavax.net.ssl.trustStore="C:/Users/b91255/jdk1.8.0_65/jre/lib/security/cacerts "
  -Djavax.net.ssl.trustStorePassword="changeit"
  </code></pre>
  
  <p>I am getting a certification chaining error. How can I ask eclipse to use <code>C:\Users\abc123\jdk1.8.0_65\jre\lib\security\cacerts</code> as the SSL keystore?</p>