Linux Sysadmin Blog

Remove Passphrase From Private Key

- | Comments

We have several SSL to transfer to our new load-balancer (Nginx) and all of the private keys contain passphrase. During Nginx (same with Apache) service restart it requires to enter the passphrase of all certificates, so we need to remove it.

This task is very simple, you only need to issue this command:

/usr/sbin/openssl rsa -in privkey_with_passphrase.key -out privkey_without_passphrase.key

This will prompt you to enter the current passphrase.