【问题标题】:Can't convert .p12 to .pem with openSSL无法使用 openSSL 将 .p12 转换为 .pem
【发布时间】:2015-03-07 15:01:33
【问题描述】:

运行后:

openssl pkcs12 -in path.p12 -out newfile.crt.pem -clcerts -nokeys 

我收到有关选项说明的提示。

运行后

openssl pkcs12 -in path.p12 -out newfile.key.pem -nocerts -nodes

我收到“输入导入密码:”的提示。这个导入密码是多少?我尝试了从 Firefox 备份中设置的那个,它以“Mac 验证错误:密码无效?”作为响应。我确定密码是正确的,因为我通过再次将其导入 Firefox 进行了测试。

我从this question的答案中得到了命令!

【问题讨论】:

  • 也许有可能,但就我而言,.p12 文件仅用于在我创建帐户的 CA 网站上进行身份验证。验证后,我可以生成可以在我的服务器上使用的 .pem 格式的密钥和证书。那是我的困惑。

标签: firefox openssl


【解决方案1】:

我也经历过同样的事情。尝试像这样将密码放在命令行中。它对我有用:

openssl pkcs12 -in path.p12 -out newfile.key.pem -nocerts -nodes -password pass:<mypassword>

【讨论】:

    猜你喜欢
    • 2011-07-22
    • 2012-03-31
    • 2014-09-01
    • 2023-03-20
    • 2014-11-26
    • 2023-03-04
    • 2020-10-30
    • 2012-08-13
    • 2013-02-15
    相关资源
    最近更新 更多