LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-31-2006, 05:16 AM   #1
blunt
LQ Newbie
 
Registered: Oct 2006
Posts: 24

Rep: Reputation: 15
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
 
Old 10-31-2006, 05:44 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,897

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
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
 
Old 10-31-2006, 06:54 AM   #3
blunt
LQ Newbie
 
Registered: Oct 2006
Posts: 24

Original Poster
Rep: Reputation: 15
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...
 
Old 10-31-2006, 07:20 AM   #4
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,340

Rep: Reputation: 73
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
 
Old 10-31-2006, 07:23 AM   #5
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,897

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Keefaz is right. The file must contain:
Code:
#!/bin/sh
echo "passphrase"

Last edited by bathory; 10-31-2006 at 07:26 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring SSL on Apache2 jstrahm Suse/Novell 1 04-06-2006 08:37 AM
apache2 + htaccess + ssl rubella Linux - Security 1 02-07-2006 05:17 AM
apache2 - ssl : connection via ssl interrupted ldp Linux - Software 0 10-02-2005 09:07 AM
Apache2 and SSL problems Malibyte Linux - Software 1 07-09-2005 04:14 PM
Apache2, SSL, HTTPS... KneeLess Debian 3 09-02-2004 09:44 PM


All times are GMT -5. The time now is 06:31 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration