p12 文件导出公钥私钥
生成key文件
openssl pkcs12 -in demo.p12 -nocerts -nodes -out demo.key
导出私钥
openssl rsa -in demo.key -out demo_pri.pem
导出公钥
openssl rsa -in demo.key -pubout -out demo_pub.pem
查询证书有效期
# openssl x509 -enddate -noout -in signature_ca_file.pem
notAfter=Aug 10 11:25:27 2021 GMT
#
查询证书
openssl x509 -inform PEM -in xxx -noout -text