title: Load multiple certificates into PKCS12 with openssl
body: <p>I am trying to load multiple certificates using openssl into the PKCS12 format. The command is as follows:</p>
  
  <pre><code>openssl pkcs12 -export -in cert1.arm -inkey cert1_private_key.pem -certfile cert2.arm -certfile cert3.arm -certfile RootCert.pem -name "Test" -out test.p12
  </code></pre>
  
  <p>Having parsed the generated PKCS12 file, only the last certificate has been included into the file:</p>
  
  <pre><code>openssl pkcs12 -in test.p12 -info -nodes
  </code></pre>
  
  <p>I also tried to import them separately into the pkcs12 file while in all the attempts, only the last certificate was remained in the file.</p>
  
  <p>Any idea where is the problem to solve it?</p>