java.io.IOException: Keystore was tampered with, or password was incorrect


Samebug tips

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


,
via Stack Overflow by Kevin

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"


6 months ago
Expert tip

Solutions on the web

Solution icon of stackoverflow
via Stack Overflow by dbf
, 1 year ago
Keystore was tampered with, or password was incorrect

Solution icon of web
Keystore was tampered with, or password was incorrect

Solution icon of web
Keystore was tampered with, or password was incorrect

Solution icon of stackoverflow
Keystore was tampered with, or password was incorrect

Solution icon of web
Keystore was tampered with, or password was incorrect

Solution icon of web
via smartjava.org by Unknown author, 9 months ago
Keystore was tampered with, or password was incorrect

Solution icon of web
via dzone.com by Unknown author, 10 months ago
Keystore was tampered with, or password was incorrect

Solution icon of oraclecommunity
via Oracle Community by user12002202, 1 year ago
Keystore was tampered with, or password was incorrect

Solution icon of oraclecommunity
via Oracle Community by 2798522, 1 year ago
Keystore was tampered with, or password was incorrect

Solution icon of stackoverflow
Keystore was tampered with, or password was incorrect

Stack trace

java.io.IOException: Keystore was tampered with, or password was incorrect
	at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:771)
	at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:38)
	at java.security.KeyStore.load(KeyStore.java:1185)

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

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 6 months ago
Once, 9 months ago
2 times, 10 months ago
33 more bugmates