title: AWS Certificate - Unrecognized keystore format: null
body: <p>I'm trying to generate AWS IoT cerificate from certificate and private key. First I'm creating PKCS12 keystore, then convert PKCS12 keystore to a BKS (BouncyCastle) keystore. While doing second step, I'm getting error:</p>
  
  <pre><code>keytool error: java.security.KeyStoreException: Unrecognized keystore format: null
  </code></pre>
  
  <p>What's weird: I'm doing it second time, few months ago I did it the same way, and then it worked, so I'm sure my files are correct. Command I'm using is (new lines only for readability here):</p>
  
  <pre><code>"C:\Program Files\Java\jdk-10.0.2\bin\keytool" 
  -importkeystore 
  -srckeystore beurer_keystore.p12 
  -srcstoretype pkcs12 
  -srcstorepass password 
  -destkeystore beurer_keystore.bks 
  -deststoretype bks 
  -deststorepass password 
  --provider org.bouncycastle.jce.provider.BouncyCastleProvider 
  --providerpath bcprov-jdk15on-160.jar
  </code></pre>
  
  <p>What could changed that this time I'm getting different result? Different Java version? Different keytool? </p>