1.把PEM转成PKCS12格式
1 | openssl pkcs12 -export -out ca.p12 -in ca.pem -inkey ca.key -passin pass:'whatever' -passout pass:'whatever' |
2. 把pem转成crt(包含私钥)
1 | openssl pkcs12 -export -in ca.pem -inkey ca.key -out ca.crt -passin pass:'whatever' -passout pass:'whatever' |
3.把pem转成cer
1 | openssl x509 -inform pem -in ca.pem -outform der -out ca.cer |
精彩评论