My Oracle Support Banner

E-SSL: 'keytool error: java.io.IOException: keystore password was incorrect' (Doc ID 2877854.1)

Last updated on JUNE 20, 2022

Applies to:

PeopleSoft Enterprise PT PeopleTools - Version 8.59 to 8.59 [Release 8.4]
Information in this document applies to any platform.

Symptoms

 When changing the old (initial) password which was '<OldPassword>' using the PSKeyManager tool, one obtains:

PeopleSoft PSKeyManager:
A wrapper to Sun's keytool for managing keys and certificates.

Default password is '<OldPassword>'
if you are still using the default, you will need to change the password.
Enter current keystore password [press ENTER to quit]:<OldPassword>

Warning: It looks like your keystore password is still set to the
default value. This is too obvious and should NEVER be used
in a production environment.

Please change the password.

You just entered the default password, are you sure the keystore is still using the default (yes/no/quit) [yes]? :yes

Changing the password

Enter your current keystore password [press ENTER to quit]:<OldPassword>
Enter a new keystore password [press ENTER to quit]:<NewPassword>
Reenter your new keystore password to confirm [press ENTER to quit]:<NewPassword>

keytool error: java.io.IOException: keystore password was incorrect
java.io.IOException: keystore password was incorrect
at java.base/sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:2117)
at java.base/sun.security.util.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:222)
at java.base/java.security.KeyStore.load(KeyStore.java:1479)
at java.base/java.security.KeyStore.getInstance(KeyStore.java:1807)
at java.base/java.security.KeyStore.getInstance(KeyStore.java:1687)
at java.base/sun.security.tools.keytool.Main.doCommands(Main.java:924)
at java.base/sun.security.tools.keytool.Main.run(Main.java:409)
at java.base/sun.security.tools.keytool.Main.main(Main.java:402)
Caused by: java.security.UnrecoverableKeyException: failed to decrypt safe contents entry: javax.crypto.BadPaddingException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption.
... 8 more

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
  
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.