title: "stream does not represent a PKCS12 key store" after storing with a new password on Android device
body: <p>I wrote an Android application that uses a <a href="http://docs.oracle.com/javase/1.5.0/docs/api/java/security/KeyStore.html">KeyStore</a> to authenticate SSL connection.
  But when I load the p12 file with the right key and stores it with a new one, the next time I try to load it with the new key I get this exception:</p>
  
  <blockquote>
    <p>java.io.IOException: stream does not represent a PKCS12 key store <br>
    at com.android.org.bouncycastle.jce.provider.JDKPKCS12KeyStore.engineLoad (JDKPKCS12KeyStore.java:691)<br>
    at java.security.KeyStore.load(KeyStore.java:589)</p>
  </blockquote>
  
  <p>What goes wrong?</p>
  
  <p>Thank you very much!</p>