将具有所有证书链的P7b文件导出到CER文件 [英] Export P7b file with all the certificate chain into CER file

查看:263
本文介绍了将具有所有证书链的P7b文件导出到CER文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Thwate提供的p7b文件,当我尝试使用以下命令在cer文件中导出证书时,不包括证书链.
请提出如何做同样的事情.导入Weblogic密钥存储区需要此CER.

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 how to do the same. This CER is required for the importing into the weblogic key store.

openssl pkcs7 -print_certs -in certificate.p7b -out certificate.cer

推荐答案

-print_certs是您要用于列出p7b文件中所有证书的选项,您可能需要指定您所使用的p7b文件的格式阅读.

-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.

在文本编辑器中打开文件,您将看到Base64(PEM)或二进制数据(DER).

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

这篇关于将具有所有证书链的P7b文件导出到CER文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆