p12文件中导出公钥和私钥

来源:互联网 发布:汉诺塔算法检验 编辑:程序博客网 时间:2024/06/09 14:11

cer格式证书生成p12文件,前面写了有一篇了。
这里是从p12文件导出公钥和私钥

//1.生成1.key文件openssl pkcs12 -in apple_payment.p12 -nocerts -nodes -out 1.key//2.导出私钥openssl rsa -in 1.key -out apple_pay_pri.pemwriting RSA key//3.导出公钥openssl rsa -in 1.key -pubout -out apple_pay_pub.pem
0 0