Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. openssl pkcs12 -in cert.pfx -nocerts -out key.pem
  2. openssl rsa -in key.pem -out server.key
  3. openssl pkcs12 -in cert.pfx -clcerts -nokeys -out cert.pem
  4. openssl pkcs12 -in cert.pfx -nodes -nokeys -out chain.pem
  5.  
  6. server.key (Certificate Private Key)
  7. cert.pem (Certificate Body)
  8. chain.pem (Certificate Chain)
  9. key.pem (Not used, but generated by the second command)
  10.  
  11. Bag Attributes
  12. localKeyID: 01 00 00 00
  13. friendlyName: ***************
  14. subject=/CN=*************.com/O=*****************/L=Richmond/ST=British Columbia/C=CA
  15. issuer=/C=US/ST=Illinois/L=Chicago/O=Trustwave Holdings, Inc./CN=Trustwave Organization Validation SHA256 CA, Level 1/emailAddress=ca@trustwave.com
  16.  
  17. openssl pkcs12 -in _cert.pfx -nocerts -out certOut.key.pem
  18. openssl rsa -in certOut.key.pem -out certOut.server.key
  19. openssl pkcs12 -in _cert.pfx -clcerts -nokeys -out certOut.cert.pem
  20. openssl pkcs12 -in _cert.pfx -nodes -nokeys -out certOut.chain.pem
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement