title: Do you not need a password to access a truststore (made with the java keytool)?
body: <p>I just created a truststore with the java keytool (for server authentication of a server that does not have a CA cert).  However I just noticed something strange.  I am starting my client like this:</p>
  
  <pre><code>java -Djavax.net.ssl.trustStore=&lt;PATHSTUFF&gt;/client.keystore -classpath &lt;STUFF&gt; Client
  </code></pre>
  
  <p><em>(Note: there is NOT a password specified)</em></p>
  
  <p>The above call works.  </p>
  
  <hr>
  
  <p>However when I try this:</p>
  
  <pre><code>java -classpath &lt;STUFF&gt; Client
  </code></pre>
  
  <p>It does not work.  (Obviously it does not work it requires the truststore).  </p>
  
  <hr>
  
  <p>I was expecting to need to pass in this option (but I did not):</p>
  
  <pre><code>-Djavax.net.ssl.trustStorePassword=mypass
  </code></pre>
  
  <hr>
  
  <p><strong>Question</strong>: Do you not need a password to access a truststore?  Is the password just for modification?  What about a keystore?</p>