Skip to content

How to Remove a Passphrase from Certificate Key

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

  1. Locate the Private Key
  2. Run the following command:
    open ssl rsa -in <original.key> -out <new.key>
  3. Enter the original passphrase for the existing key
  4. 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-----
Code language: plaintext (plaintext)

Unencrypted headers example

-----BEGIN RSA PRIVATE KEY----- ABC407785DD18XXX... -----END RSA PRIVATE KEY-----
Code language: plaintext (plaintext)

See also  Limited numeric input in flash actionscript 2 textfield
Tags:
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x