Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- openssl pkcs12 -in cert.pfx -nocerts -out key.pem
- openssl rsa -in key.pem -out server.key
- openssl pkcs12 -in cert.pfx -clcerts -nokeys -out cert.pem
- openssl pkcs12 -in cert.pfx -nodes -nokeys -out chain.pem
- server.key (Certificate Private Key)
- cert.pem (Certificate Body)
- chain.pem (Certificate Chain)
- key.pem (Not used, but generated by the second command)
- Bag Attributes
- localKeyID: 01 00 00 00
- friendlyName: ***************
- subject=/CN=*************.com/O=*****************/L=Richmond/ST=British Columbia/C=CA
- issuer=/C=US/ST=Illinois/L=Chicago/O=Trustwave Holdings, Inc./CN=Trustwave Organization Validation SHA256 CA, Level 1/emailAddress=ca@trustwave.com
- openssl pkcs12 -in _cert.pfx -nocerts -out certOut.key.pem
- openssl rsa -in certOut.key.pem -out certOut.server.key
- openssl pkcs12 -in _cert.pfx -clcerts -nokeys -out certOut.cert.pem
- openssl pkcs12 -in _cert.pfx -nodes -nokeys -out certOut.chain.pem
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement