I was looking for this private key to add ssl certificate in Softlayer's "Add Certificate" wizard and to use it further with Local Load Balancer.
I googled and tried following openssl command:
openssl pkcs12 -in filename.pfx -nocerts -out key.pem
But I ended up with invalid "RSA PRIVATE KEY". Please help.
Best Answer
Your command is correct, and gives you the encrypted private key in PKCS#8 format. If you need the unencrypted private key, just add the
-nodes
option:If you need the private key in old RSA format, you should convert the given key with the
openssl pkcs8
command:See the documentation for details: