天天看点

PFX证书拆分私钥与证书

1.首先安装Win32OpenSSL_Light-1_1_0g.exe,默认安装到了C盘根目录

2.将PFX证书粘贴到C:\OpenSSL-Win32\bin下

3.导出证书(进入CMD命令操作界面,进入openssl的bin目录)

openssl pkcs12 -in root用户签名.pfx(原证书) -clcerts -nokeys -out cert.pem(证书名)

输入证书密码

进入bin目录查看证书文件

4.导出私钥(进入CMD命令操作界面,进入openssl的bin目录)

openssl pkcs12 -in root用户签名.pfx  -nokeys -out key.pem

进入bin目录查看私钥文件

本文转自 红色的菠萝 51CTO博客,原文链接:http://blog.51cto.com/10460741/2049006

继续阅读