Skip to content
Advertisement

keytool error: java.io.IOException: keystore password was incorrect

Created a Certificate for Tomcat, trying to get it installed in new keystore, and getting error (Edit: ran it with -v option, now getting more info):

JavaScript

Sadly, it’s correct, the passphrase has two “®”. So, given what I’ve done (the private key has the non-ASCII password), how much of a pain will it be to recover from this?:

JavaScript

The file “.keystore” does not exist. I am assuming that keytool will create it

Advertisement

Answer

Ok, so I have an answer.

1: I had a non-ASCII character in the password. openssl can handle that, keypass can’t.

2: Having created the private key with the non-ASCII password, I’m stuck with it, so I renamed that file .kpkey, and created a new .kp file with a pure ASCII password

3: This required a change to 5:C:

JavaScript

Note: when it asks “Enter Export Password” I give it the pw from .kp, NOT from .kpkey . The only change is -passin file:.kpkey

Everything else remains the same, and works

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement