title: java.io.IOException: keystore password was incorrect
body: <p>I am using command:</p>
  <pre><code>keytool -importkeystore -srckeystore &quot;X\cert.pfx&quot; -srcstorepass password -srcstoretype pkcs12 -destkeystore &quot;X\keystore3.jks&quot; -destkeypass password -deststoretype JKS -alias alias
  </code></pre>
  <p>and get <code>java.io.IOException: keystore password was incorrect</code></p>
  <p>However if I double click on <code>cert.pfx</code> and during installation process enter passphrase which is <code>password</code> I successfully install it.</p>
  <p>Another strange thing is that I am asked for a new keystore passphrase even thought I have supplied it with <code>-destkeypass password</code></p>
  <p><strong>Update:</strong></p>
  <p>Strange thing happened out of nowhere: I was unable to use keytool anymore - I got <code>This app can’t run on your PC</code>. After calling <code>where keytool</code> I went to that directory and saw that <code>keytool.exe</code> is of size 0KB. All I was doing this time was jus trying different versions of <code>keytool</code> and <code>openssl</code> commands so I've got no idea why this had happened. Since I could not use that instance of <code>keytool</code> anymore I tried using different one as I have installed multiple JDK instances on my machine and I it worked: I mean I do not get <code>keystore password was incorrect</code> error anymore. I get another error now but it is a different story.</p>