证书互转操作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

posted @ 2019-10-31 10:04  Bryan1991  阅读(1981)  评论(0)    收藏  举报