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

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

问题描述

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

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

推荐答案

您可以使用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天全站免登陆