1. Home
  2. Backup, Security & Performance
  3. SSL & Signing Certificates
  4. Can I change the pass phrase on my private key for Apache using SSL?
  1. Home
  2. Backup, Security & Performance
  3. SSL & Signing Certificates
  4. Can I change the pass phrase on my private key for Apache using SSL?

Can I change the pass phrase on my private key for Apache using SSL?

Yes, you can change the pass phrase on the private key with the following commands –

Step 1: To chnage the pass-phrase, enter the following at command prompt:
$ openssl rsa -des3 -in server.key -out server.key.new

Step 2: To overwrite the new key file with the new pass-phrase, enter the following at command prompt:
$ mv server.key.new server.key

You will be asked two times for the pass-phrase. At the first prompt enter the old pass-phrase and at the second prompt enter the new pass-phrase.

Verify that the new password is being used by this command:
#openssl rsa -noout -text -in /ssl.key/server.key (ssl.key is the full directory)

Updated on February 8, 2019

Was this article helpful?