title: Creating PKCS#12 keystore with multiple certificates using OpenSSL 1.0.0a
body: <p>I am trying to create a PKCS#12 keystore with more than one certificate. this option does seem to be documented well - everyone talks about creating a .p12 file from a single certicate in a .pem file, like this:</p>
  
  <pre><code>openssl pkcs12 -export -in my_single_signed_cert.pem -out keystore.p12 -name "Alias1"
  </code></pre>
  
  <p>this creates a new .p12 file each time. If you try to create 1 keystore with 2 certificates like this:</p>
  
  <pre><code>openssl pkcs12 -export -in my_signed_cert.pem -out keystore.p12 -name "Alias1"
  openssl pkcs12 -export -in my_other_signed_cert.pem -out keystore.p12 -name "Alias2"
  </code></pre>
  
  <p>the keystore.p12 file contains only "Alias2". </p>
  
  <p>I have to use PKCS#12 (enterprise toolset requires it), and I know JKS can import certs just fine.</p>
  
  <p>Any suggestions ?</p>