Load multiple certificates into PKCS12 with openssl

后端 未结 1 1705
独厮守ぢ
独厮守ぢ 2021-02-04 01:24

I am trying to load multiple certificates using openssl into the PKCS12 format. The command is as follows:

openssl pkcs12 -export -in cert1.arm -inkey cert1_priv         


        
相关标签:
1条回答
  • 2021-02-04 01:46

    First, make sure all your certificates are in PEM format. Then, make a SINGLE file called "certs.pem" containing the rest of the certificates (cert2.arm, cert3.arm, and RootCert.pem).

    Then use the command like this:

    openssl pkcs12 -export -in cert1.arm -inkey cert1_private_key.pem -certfile certs.pem -name "Test" -out test.p12
    

    The openssl pkcs12 documentation explains the different options.

    0 讨论(0)
提交回复
热议问题