Bootstrap

p12证书转pem、cert、key

p12证书转pem、cert、key

1.p12证书转pem
[root@root ~]# openssl  pkcs12 -in tomcat.p12  -out admin.pem -nodes
2.p12证书转cert
[root@root ~]# openssl pkcs12 -in tomcat.p12 -nokeys -out admin.crt
3.p12证书转cert
[root@root ~]# openssl pkcs12 -in tomcat.p12 -nocerts -nodes -out admin.key
4.pem文件转p12
[root@root ~]# openssl pkcs12 -export -in admin.pem -out tomcat.p12 -inkey keycert.pem
;