If you have a Certificate Key that includes a Passphrase and you need to remove it, potentially to use it with AWS App Mesh, then you can do the following:
How to Remove a Passphrase using OpenSSL
- Locate the Private Key
- Run the following command:
open ssl rsa -in <original.key> -out <new.key>
- Enter the original passphrase for the existing key
- The output file <new.key> will now be unencrypted
How to Verify if the Passphrase has been removed
Open the file in a text editor and check the headers.
Encrypted headers example
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED DEK-Info: DES-EDE3-CBC,
ABC407785DD18XXX...
-----END RSA PRIVATE KEY-----
Unencrypted headers example
-----BEGIN RSA PRIVATE KEY-----
ABC407785DD18XXX...
-----END RSA PRIVATE KEY-----