linux java 导入证书_如何在linux中转换SSL证书
发布日期:2021-06-24 15:10:56 浏览次数:2 分类:技术文章

本文共 817 字,大约阅读时间需要 2 分钟。

在cer / pem / crt / der / pfx / p12之间转换证书可以在Linux中通过终端使用 OpenSSL 工具完成 .

这些命令允许您将证书和密钥转换为不同的格式,以使它们与特定类型的服务器或软件兼容 .

Convert a DER file (.crt .cer .der) to PEM

openssl x509 -inform der -in certificate.cer -out certificate.pem

Convert a PEM file to DER

openssl x509 -outform der -in certificate.pem -out certificate.der

Convert a PKCS#12 file (.pfx .p12) containing a private key and certificates to PEM

openssl pkcs12 -in keyStore.pfx -out keyStore.pem -nodes

您可以添加-nocerts以仅输出私钥或添加-nokeys以仅输出证书 .

Convert a PEM certificate file and a private key to PKCS#12 (.pfx .p12)

openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt

有关更多信息,请参阅

http://www.sslshopper.com/article-most-common-openssl-commands.html https://support.ssl.com/index.php?/Knowledgebase/Article/View/19

转载地址:https://blog.csdn.net/weixin_33572836/article/details/114320628 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:mysql 语法难学_MySQL语法大全_自己整理的学习笔记
下一篇:java native 修饰符_Java修饰符

发表评论

最新留言

初次前来,多多关照!
[***.217.46.12]2024年04月13日 07时23分26秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

推荐文章