org.debian.security.InvalidKeystorePasswordException

Cannot open Java keystore. Is the password correct?

Samebug tips2

If you are using maven you'd like to exclude your binaries from filtering process.


ifercaiferca

Java Keytool doesn't accept PEM files, you need to convert it to Der before: "openssl x509 -outform der -in certificate.pem -out certificate.der" and to import it to the keystore "keytool -import -alias your-alias -keystore cacerts -file certificate.der"


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web237

  • via GitHub by ILoveHubGit
    ,
  • Stack trace

    • org.debian.security.InvalidKeystorePasswordException: Cannot open Java keystore. Is the password correct? at org.debian.security.KeyStoreHandler.load(KeyStoreHandler.java:68) at org.debian.security.KeyStoreHandler.<init>(KeyStoreHandler.java:52) at org.debian.security.UpdateCertificates.<init>(UpdateCertificates.java:65) at org.debian.security.UpdateCertificates.main(UpdateCertificates.java:51) Caused by: java.io.IOException: Invalid keystore format at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:658) at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:56) at sun.security.provider.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:224) at sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(JavaKeyStore.java:70) at java.security.KeyStore.load(KeyStore.java:1445) at org.debian.security.KeyStoreHandler.load(KeyStoreHandler.java:66) ... 3 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    ifercaiferca
    2 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    33 more bugmates