使用 openssl 将 pfx 转换为 pem [英] Converting pfx to pem using openssl

查看:33
本文介绍了使用 openssl 将 pfx 转换为 pem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用 OpenSSL 从 PFX 文件生成 .pem CA 证书客户端证书.

解决方案

您可以使用 OpenSSL 命令行工具.以下命令应该可以解决问题

openssl pkcs12 -in client_ssl.pfx -out client_ssl.pem -clcertsopenssl pkcs12 -in client_ssl.pfx -out root.pem -cacerts

如果您希望您的文件受密码保护等,那么还有其他选项.

您可以在此处阅读整个文档.>

How to generate a .pem CA certificate and client certificate from a PFX file using OpenSSL.

解决方案

You can use the OpenSSL Command line tool. The following commands should do the trick

openssl pkcs12 -in client_ssl.pfx -out client_ssl.pem -clcerts

openssl pkcs12 -in client_ssl.pfx -out root.pem -cacerts

If you want your file to be password protected etc, then there are additional options.

You can read the entire documentation here.

这篇关于使用 openssl 将 pfx 转换为 pem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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