rsa加密解密pfx证书转pem文件

 

openssl 转化文件命令
X509转PFX:
openssl pkcs12 -export -inkey test.key -in test.cer -out test.pfx
PFX转X509:
openssl pkcs12 -in test.pfx -nodes -out test.pem
openssl rsa -in test..pem -out test.key
openssl x509 -in test..pem -out test.crt

注意:转化文件来源路径和保存路径一致

加密|签名方法:

 

posted @ 2017-12-06 15:43  $wanggang  阅读(2905)  评论(0编辑  收藏  举报