Posts Tagged ‘ssl passphrase’

openssl – how to disable passphrase prompt on apache2 restart

November 30, 2010 15 comments

Whenever apache2 restart and you have to manualy Enter the pass phrase of your ssl key.

To automatically start/restart apache2 without the prompt dialog, you can either store the passphrase in a secure folder or remove the password.

OPTION 1. store passphrase:

from your ssl.conf under /etc/apache2/mods-enabled/ssl.conf

SSLPassPhraseDialog  exec:/securepath/to/passphrase-file

then create passphrase-file and type

echo "passphrase"

save file then make it executable

# chmod +x /passphrase-file

OPTION 2. Remove password:

# openssl rsa -in -out

then from update the location of your key file in your apache2 virtual hosts.