证书互转操作pkcs8转到pkcs12

openssl pkcs8 -in rsa_private_key_pkcs8.pem -nocrypt -out pri_key.pkcs1

openssl rsa -in pri_key.pkcs1 -pubout -out pub.key

openssl req -new -x509 -key pri_key.pkcs1 -out pri.cer -days 3650

openssl pkcs12 -export -out pri.pfx -inkey pri_key.pkcs1 -in pri.cer

猜你喜欢

转载自www.cnblogs.com/bryanhaohao/p/11769616.html
今日推荐