unix:openssl

Convert ''.pfx'' to ''.crt'' and ''.key''

cert=foo_bar.pfx 
openssl pkcs12 -in $cert -clcerts -nokeys -out $(basename "$cert" .pfx).crt
openssl pkcs12 -in $cert -nocerts -out $(basename "$cert" .pfx)-encrypted.key
openssl rsa -in $(basename "$cert" .pfx)-encrypted.key -out $(basename "$cert" .pfx).key
  • unix/openssl.txt
  • Last modified: 2021-03-22T08:56:25+0100
  • by Wolfgang