You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
541 B

# To export the private key without a passphrase or password.
# Type: openssl pkcs12 -in filename.pfx -nocerts -nodes -out key.pem
#
# To Generate a public version of the private RSAkey
# Type: openssl rsa -in key.pem -out server.key
#
# To export the Certificate
# Type: openssl pkcs12 -in filename.pfx -clcerts -nokeys -out cert.pem
#
# The directory will now have a file cert.pem and a key.pem.
openssl pkcs12 -in $1 -nocerts -nodes -out key.pem -passin pass:$2
openssl pkcs12 -in $1 -clcerts -nokeys -out cert.pem -passin pass:$2