【问题标题】:I have p12 certificate when i am trying to convert it to cert.pem and key.pem. Key.pem is empty当我尝试将其转换为 cert.pem 和 key.pem 时,我有 p12 证书。 Key.pem 为空
【发布时间】:2019-12-24 23:05:17
【问题描述】:

我正在运行以下命令:

openssl pkcs12 -in certficate.p12 -nokeys -out certficate.pem
openssl pkcs12 -in certficate.p12 -nodes -nocerts -out certficate_key.pem

我的 certficate_key.pem 文件为空。

【问题讨论】:

  • -nocerts 表示输出中没有证书。请尝试不使用此选项

标签: openssl certificate pem p12


【解决方案1】:

这也发生在我身上。我不知道原因,但是使用这个网站来转换证书就可以了:

https://www.sslshopper.com/ssl-converter.html

它只会创建一个文件,但如果你打开它,key 和 crt 都会在那里。

【讨论】:

    猜你喜欢
    • 2017-02-25
    • 1970-01-01
    • 2020-03-03
    • 1970-01-01
    • 1970-01-01
    • 2021-11-27
    • 2016-12-25
    • 2013-04-21
    • 2014-01-22
    相关资源
    最近更新 更多