I have Apache 2 installed on Debian with mod_ssl installed. The private key of the server is protected by the password phase, which must be entered at startup. Error and access logs are logarithmed weekly. I found that Apache crashes with a passphrase error shortly after starting logrotate.
I understand that logrotate starts SIGHUP in Apache after archiving the logs, and I suspect that this causes a reboot and subsequent failure to get the passphrase for the server key.
Well, enough with my theories, here is the question:
Is there a “better way” to configure Apache so that its SSL server keys can be protected with a passphrase (without saving this passphrase in a file somewhere) so that it does not work when logrotate starts?
It is normal to require user input at server startup, but not restart or reboot.
source
share