title: KeyStore with BouncyCastleProvider: KeyStore integrity check failed
body: <p>I want to use a self-signed signature for ssl connections. I'm following <a href="https://stackoverflow.com/a/10026598/1598840">this</a> post.</p>
  
  <p>My problem: After creating the Keystore my integrity-check fails.</p>
  
  <pre><code>Keytool-Error: java.io.IOException: KeyStore integrity check failed.
  </code></pre>
  
  <p>I'm still searching but maybe someone can save me some time.</p>