Forum Discussion

kaanyy's avatar
New Contributor
13 years ago

ProbablyBadPasswordException with Correct Password


I can not add my keystore; following error occurs:

error: org.apache.commons.ssl.ProbablyBadPasswordException: Probably bad JKS-Key password: Cannot recover key

However my keystore's password is correct and file is not corrupted. I verified it by:

D:\cert>d:\apps\jdk6\bin\keytool -keystore "D:\cert\client1Keytore.ks" -list
Enter keystore password:

Keystore type: JKS
Keystore provider: SUN

Your keystore contains 1 entry

client1, 02.May.2012, PrivateKeyEntry,
Certificate fingerprint (MD5): B6:55:62:95:ED:78:87:D5:F3:E4:9D:B1:82:B2:F6:20

What might be the problem? I had created the keystore as seen below:

d:\apps\jdk6\bin\keytool -keystore d:\cert\client1Keytore.ks -genkey -alias client1 -keypass -pass1234

Kind regards,
Kaan Yy

2 Replies

  • kaanyy's avatar
    New Contributor
    Problem is solved; I am not sure which helped but what I did was:

    1) Unistall 4 and install 4.5
    2) Install to directory without whitespaces (instead of c:\program files\.. i used: d:\soapui)
  • bnhuser's avatar
    New Contributor

    I have the exact same error - ProbablyBadPasswordException , but the password is correct


    I verified the keystore after creation (with this paassword) and I am able to see that the keystore has 1 entry.


    Ready API version - 2.6.0


    What changes were made, so that it got resolved?