Export P7b file with all the certificate chain into CER file

后端 未结 5 438
清歌不尽
清歌不尽 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条回答
  •  一向
    一向 (楼主)
    2021-01-31 09:17

    The only problem is that any additional certificates in resulted file will not be recognized, as tools don't expect more than one certificate per PEM/DER encoded file. Even openssl itself. Try

    openssl x509 -outform DER -in certificate.cer | openssl x509 -inform DER -outform PEM
    

    and see for yourself.

提交回复
热议问题