openssl-cer证书

cer证书导出pem格式证书

一、来由-决定思路

1、最近有个数据要用到SHA1withRSA算法进行验签,用的是openssl中的算法,使用的pem格式的证书;但是证书来源的格式为xxx.cer;是cer格式的。
2、因此就需要将cer格式的证书导出为pem格式的。

二、导出命令

openssl x509 -inform der -in bestpay.cer -pubkey -noout > bestpay_pub.pem

猜你喜欢

转载自blog.csdn.net/weixin_46089486/article/details/103973040