Apache + modssl
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Apache + modssl



Hi, 

I have a question, I got apache runnining with mod ssl 
it works fine as a matter of fact great. 

The only trouble I seam to stuble on is starting it 
up, from the command line it's easy: 
/usr/local/apache/bin apachectl startssl
it prompts me for the pem password, I enter it, it works 

What I'm trying to do now is start it through init.d 
or atleast make a script that starts it up. 

I've used autoexpect to make a little script: 
#!/usr/local/bin/expect

set timeout -1
spawn /usr/local/apache/bin/apachectl startssl
match_max 100000
expect -exact "Apache/1.3.12 mod_ssl/2.6.4 (Pass Phrase Dialog)\r
Some of your private key files are encrypted for security reasons.\r
In order to read them you have to provide us with the pass phrases.\r
\r
Server pandora.information-innovation.com:443 (RSA)\r
Enter pass phrase:"
send -- "notquite\r"
expect eof

Now, this script manages to run, enter the password and give me my promt
back. 

The bad part, Apache does not start, and nothing comes through the error
log. 

Does anyone have any ideas? 


Thanks 
Mark