« Enumerate protocols and ciphers for Tomcat | Main

February 05, 2013

Changing Java keystore passwords...

Sometimes you need to update a KeyStore password - use the following method to complete the process.

First, locate the keystore that you need to modify:
[root@swift cdgrieb]# ls /usr/share/certs/certs/pact.hf.mcarepartners.org.p12

Next, issue the password update command:
[root@swift cdgrieb]# keytool -storepasswd -keystore /usr/share/certs/certs/pact.hf.mcarepartners.org.p12 -storetype pkcs12
Enter keystore password:
New keystore password:
Re-enter new keystore password:

Note: remember to specific the keystore type (wit the -storetype pkcs12 switch), unless you're using the standard format. Otherwise, it'll fail.

Posted by cdgrieb at February 5, 2013 12:32 PM


Login to leave a comment. Create a new account.