title: pkcs12 keystore password was incorrect in java
body: <p>I'm having this error in Eclipse when I try to load pkcs12 certificate from my classpath:</p>
  
  <p><a href="https://i.stack.imgur.com/2Lad0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2Lad0.png" alt="enter image description here"></a></p>
  
  <p>In my siaval.properties I have a refference to the URL of my .p12 file:</p>
  
  <pre><code>client.authentication.method=Signature
  sign.keystore.type=PKCS12
  sign.keystore.url=firma/acceso_ws_tspcrypto.p12
  sign.keystore.password={myEncryptedPassword}
  client.domain=mydomain
  </code></pre>
  
  <p>I'm having this "keystore password" error only if I try to use the p12 file in the classpath of my Java app, but if I change the <code>sign.keystore.url=firma/acceso_ws_tspcrypto.p12</code> for the same file but located at my desktop <code>C:/Users/mysuer/Desktop/firma/cert/acceso_ws_tspcrypto.p12</code> everything works fine.</p>
  
  <p>Why am I having this error?</p>