title: keystore expire 1 day with an error: "Keystore was tampered with, or password was incorrect"
body: <p>I'm dealing with a problem about my keystore.</p>
  
  <p>First I developed a secure connection between a java application and a cpp application, using openssl. I worked fine last month but in the past few days, it does not work fine. </p>
  
  <p>I generate a pem and a key file with using openssl and I generate a keystore.jks by converting them, and it worked fine for 1-2 months when I tested it. But about 1 month later, I realize that the keystore does not work on the java side, failing with an exception. Two days ago I generated a new keystore and I tested it. It worked fine (both java and cpp parts). A day later, it didn't work.</p>
  
  <p>I generated a new key store with using <code>-validty 16500</code>, and I expect that it will work but  today, it gives same error (copied below).</p>
  
  <p>Has anyone seen this problem before which is about a keystore expiring in one day?</p>
  
  <p>How can I solve this problem?</p>
  
  <pre><code>java.io.IOException: Keystore was tampered with, or password was incorrect
  at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source)
  at sun.security.provider.JavaKeyStore$JKS.engineLoad(Unknown Source)
  at java.security.KeyStore.load(Unknown Source)
  caused by: java.security.UnrecoverableKeyException: Password verification failed
  ... 13 more
  2012-06-07 13:20:52,116 [           main]                       de
  </code></pre>