Entering apache passphrase after reboot?

Latest response

Is there a way to enter the apache passphrase after a server is rebooted, if for example you do not catch the prompt to enter it during the reboot? We have to use a KVM device owned by another department to get into our server remotely to reboot it, and sometimes it has an issue and drops our connection during the reboot, before it gets to the part where it prompts for the apache passphrase. The server does come up eventually and I can then ssh into it (using putty), but the httpd service is down and I cannot bring it up. If I am able to get back into the server via the KVM, it is still waiting with the apache passphrase prompt, and I can put it in and all is well. But sometimes we cannot get back in via the KVM, at least not very quickly, and it would be great to be able to do it via the ssh connection. Is there such a command? In doing research we've only found articles about resetting the passphrase or disabling it, or putting it in the ssl.conf file so it does not have to be entered (which we do not want to do). Appreciate any suggestions.
Thanks!

Responses

It seemed like the httpd service was neither up nor down, but rather in "limbo", because it gave errors when I tried to start it or stop it. I did not check the ps to see if there were any http processes running, but I wonder if there were, and if I had killed them, then started apache, if it would have asked me for the passphrase then?

Julie,

Another option is to disable httpd automatically starting on boot as it needs manual intervention to provide the passphrase anyway. You will then be able to login using ssh, start the service, and you will be prompted for the passphrase in your ssh session (rather than the startup waiting in the console for the passphrase input).

Thank you, that is a great suggestion. Why didn't I think of that?? :)

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.