LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Apache2 + ssl (https://www.linuxquestions.org/questions/slackware-14/apache2-ssl-497160/)

blunt 10-31-2006 05:16 AM

Apache2 + ssl
 
Hello.

I have managed to install apache2 with ssl support and it works just fine if i type: apachectl start and put my passphrase.

The problem is that when i reboot the server, apache doesn't start... I believe the cause is the lack of password... how do I fix this?

any thoughts?

thank you

bathory 10-31-2006 05:44 AM

Save your passphrase in a file e.g. /path/to/passphrase (I'm not sure but I think it must be executable) and then in your httpd.conf (or ssl.conf if you use different conf files) find the line with "SSLPassPhraseDialog" and change it to:
Code:

SSLPassPhraseDialog  exec:/path/to/passphrase

blunt 10-31-2006 06:54 AM

that didn't work for me...

I made another certificate and generated the server.key without a passphrase...

at least it works for now, till i find another way...

keefaz 10-31-2006 07:20 AM

That's how I use it (no passphrase)
Maybe the '/path/to/passphrase' script has to
output the passphrase (like echo 'passphrase')
or it just a plain file that contains passphrase ?
I will investigate this

bathory 10-31-2006 07:23 AM

Keefaz is right. The file must contain:
Code:

#!/bin/sh
echo "passphrase"



All times are GMT -5. The time now is 04:02 PM.