Search code examples
javasslbouncycastlekeystore

KeyStore with BouncyCastleProvider: KeyStore integrity check failed


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.


Solution

  • 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()