KeyStore with BouncyCastleProvider: KeyStore integrity check failed

K. D. picture K. D. · Oct 29, 2012 · Viewed 16.3k times · Source

I want to use a self-signed signature for ssl connections. I'm following this post.

My problem: After creating the Keystore my integrity-check fails.

Keytool-Error: java.io.IOException: KeyStore integrity check failed.

I'm still searching but maybe someone can save me some time.

Answer

Eddie Fletcher picture Eddie Fletcher · Dec 6, 2012

Make sure you are using the right password to open the keystore. I was having this error and turns out I was still using the password from the example code in trusted.load()