Linux under pfx certificate to export key and crt

**

Linux under pfx certificate to export key and crt

**
A: In the case of do not know openssl openssl path to determine the path of the

two: cd / usr / local / ssl
the SET OPENSSL_CONF = OPENSSL_CONF
Here Insert Picture Description
Here Insert Picture Description
three: the target .pfx file into the current directory (/ usr / local / ssl)
1. first turn .pem file
OpenSSL PKCS12 -IN an.pfx -nodes -out an.pem
Here Insert Picture Description
2. the .pem file into .key file
OpenSSL rsa -IN an.pem -out an.key
Here Insert Picture Description
3. the .pem documents into .crt file
openssl x509 -in an.pem -out an.crt
Here Insert Picture Description
successful conversion ll see
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/weixin_43713498/article/details/87919881