Export P7b file with all the certificate chain into CER file

后端 未结 5 441
清歌不尽
清歌不尽 2021-01-31 08:51

I have p7b file provided by Thwate.When I am trying to export the certificate in the cer file using the below command, the certificate chain is not included.
Please suggest

5条回答
  •  梦毁少年i
    2021-01-31 09:03

    -print_certs is the option you want to use to list all of the certificates in the p7b file, you may need to specify the format of the p7b file you are reading.

    You can then redirect the output to a new file to build the concatenated list of certificates.

    Open the file in a text editor, you will either see Base64 (PEM) or binary data (DER).

    openssl pkcs7 -inform DER -outform PEM -in certificate.p7b -print_certs > certificate_bundle.cer
    

    http://www.openssl.org/docs/apps/pkcs7.html

提交回复
热议问题