title: Invalid Keystore Format after creating a keystore and attaching a certificate to it
body: <p>I am creating a keystore using OpenSSL using the following command :</p>
  
  <pre><code>openssl pkcs12 -export -in mycert.crt -inkey mykey.key \
                          -out mycert.p12 -name tomcat -CAfile myCA.crt \
                          -caname root
  </code></pre>
  
  <p>as per the <a href="http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html#Prepare_the_Certificate_Keystore" rel="nofollow">documentation</a>.</p>
  
  <p>Now when I try to validate the keystore using <code>keytool -list -v -keystore mycert.p12</code>, I am getting an <code>Invalid Keystore Exception</code>.</p>
  
  <p>Is this because I am using Apache implementation of creating a keystore? </p>
  
  <p>Also a constraint I have is that I cannot use Java keytool to create a keystore although my Java program is using to keystore for FTPS transfer.</p>