You are not logged in.

#1 2014-06-15 03:56:28

dejy
Member
Registered: 2014-03-18
Posts: 67

Apache Error reading private SSL Key

Here is the journalctl -xn. I can't seem to find any information on it.

 apachectl[3492]: Apache/2.4.9 mod_ssl (Pass Phrase Dialog)
 apachectl[3492]: Some of your private key files are encrypted for security reasons.
 apachectl[3492]: In order to read them you have to provide the pass phrases.
 apachectl[3492]: Private key www.example.com:443:0 (/etc/ssl/server.key)
 apachectl[3492]: Enter pass phrase:Apache:mod_ssl:Error: Private key not found.
 apachectl[3492]: **Stopped
 systemd[1]: httpd.service: control process exited, code=exited status=1
 systemd[1]: Failed to start Apache Web Server.

Subject: Unit httpd.service has failed
-- Defined-By: systemd

Offline

#2 2014-06-15 10:15:41

rune0077
Member
Registered: 2009-04-11
Posts: 135

Re: Apache Error reading private SSL Key

It's because you have a SSL key with a passphrase, like the output clearly says. You can't run apache from startup because you are required to enter the passphrase manually before continuing.

Either use an ssl key without a passphrase, or configure mod_ssl to enter the passphrase automatically, in which case you need to set the:

SSLPassPhraseDialog exec:

to point to a file containing the right passphrase.

Or, launch apache yourself from a terminal after the system has booted up, then it should ask for the passphrase.

Offline

#3 2014-06-26 09:07:58

dejy
Member
Registered: 2014-03-18
Posts: 67

Re: Apache Error reading private SSL Key

rune0077 wrote:

It's because you have a SSL key with a passphrase, like the output clearly says. You can't run apache from startup because you are required to enter the passphrase manually before continuing.

Either use an ssl key without a passphrase, or configure mod_ssl to enter the passphrase automatically, in which case you need to set the:

SSLPassPhraseDialog exec:

to point to a file containing the right passphrase.

Or, launch apache yourself from a terminal after the system has booted up, then it should ask for the passphrase.

I was running it from shell - and it never reached the passphrase dialog prompt. Removed the password from the key and everything worked but still...

Offline

#4 2014-06-26 10:15:13

rune0077
Member
Registered: 2009-04-11
Posts: 135

Re: Apache Error reading private SSL Key

Okay that's a bit weird, it really should prompt you.

If you still want to fix this, what exactly do you have in the

SSLPassPhraseDialog exec:

line in mod_ssl?

Offline

Board footer

Powered by FluxBB