You can use other OpenSSL commands to extract and combine the keys in generated PKCS12 certificates. You can also convert a password protected private key PEM file to a non-password protected file.
Commands to use with PKCS12 certificates
Description | OpenSSL command format |
|---|---|
Create a certificate and key in one file |
|
Export the PKCS12 version of the certificate |
|
Description | OpenSSL command format |
|---|---|
Extracts the .pem key out of .pfx |
|
Removes password on key |
|
Command to convert a password protected private key PEM file
To convert a password protected private key PEM file to a non-password protected file, type:
openssl rsa -in C:\ssl\keys\key.pem -out C:\ssl\keys\keyNoPassword.pem
Note
In the previous example,
C:\ssl\keysis the input and output paths for the file nameskey.pemandkeyNoPassword.pem.