Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Automatic startup of Apache2 -D SSL?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
chmod
n00b
n00b


Joined: 30 Oct 2002
Posts: 28
Location: Oklahoma City, OK USA

PostPosted: Wed Sep 17, 2003 4:27 am    Post subject: Automatic startup of Apache2 -D SSL? Reply with quote

I have apache2 installed and working from portage. I have a couple of SSL hosts that are working nicely.

The problem is: I'd like to add apache2 to the default runlevel so it will start on boot. But my SSL certs have passwords. So when apache starts it asks for the passphrase of the cert.

Is there a way to make it start and put the passphrase in a startup script or something? Or do I just need to remake the certs without passwords?

Thanks!
Back to top
View user's profile Send private message
cvk
Guru
Guru


Joined: 06 Jan 2003
Posts: 314
Location: Our house, in the middle of our street

PostPosted: Wed Sep 17, 2003 5:58 am    Post subject: Reply with quote

As it makes no difference in security, you can simply remove the passphrase from your key:
Code:
# cp server.key server.key.org
# openssl rsa -in server.key.org -out server.key
# chmod 400 server.key


btw: This answer is covered in the mod_ssl FAQ:
http://www.modssl.org/docs/2.8/ssl_faq.html#remove-passphrase


Regards,
cvk
_________________
Adopt an unanswered post now.
Back to top
View user's profile Send private message
chmod
n00b
n00b


Joined: 30 Oct 2002
Posts: 28
Location: Oklahoma City, OK USA

PostPosted: Wed Sep 17, 2003 6:38 am    Post subject: Reply with quote

Thanks for the fast reply! Works great :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum