LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-30-2007, 01:49 PM   #1
GoBillsBN
Member
 
Registered: Mar 2004
Posts: 31

Rep: Reputation: 15
Apache won't start - missing SSL certificates, howto recreate them?


I already posted this issue in the Mandriva forum and hate to post it again, but I think this is an issue that's really not Mandriva specific, as I once thought.

Here's the issue. After upgrading from Mandriva 2006 to 2007, apache gives me this error when starting:

> /etc/init.d/httpd start
Starting httpd: Syntax error on line 46 of /etc/httpd/modules.d/41_mod_ssl.default-vhost.conf:
SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not exist or is empty
[FAILED]

If I comment out that line it gives me this error:

Starting httpd: Syntax error on line 53 of /etc/httpd/modules.d/41_mod_ssl.default-vhost.conf:
SSLCertificateKeyFile: file '/etc/pki/tls/private/localhost.key' does not exist or is empty

comment them both out and I just get a starting httpd failed message.

So I think this is a simple matter of creating these certificates. Why they got deleted is anybody's guess.

I googled a little, but can't find anything too helpful......so does anyone here know how I can create these certificates and get my server back online?
 
Old 01-31-2007, 03:15 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,907

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Did you take a look first to see if those files exist or they are renamed to something else?
If you want to re-create them, you can read this guide.
 
Old 01-31-2007, 05:55 PM   #3
GoBillsBN
Member
 
Registered: Mar 2004
Posts: 31

Original Poster
Rep: Reputation: 15
Thanks for pointing me that guide, that did it.

No, I checked the relevant directories and didn't find any keys.....they weren't simply re-named, kinda odd, but it's been solved. Thanks again.
 
Old 01-31-2007, 06:22 PM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Upgrading Mandriva probably also upgraded apache. You may have had your old configs renames before replacing them with the ones from the new package.

You might also look in /etc/ for other config files renamed with .rpmnew or .rpmold added to the end. Sometimes the rpm install script will leave your old config in place and supply a new one with the rpmnew extension. You will want to read both. There may be new config settings that you might need.
 
  


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
Apache 1.3 / SSL Certificates uid0sd Debian 0 08-23-2006 03:50 PM
Apache 2 and SSL Certificates aq_mishu Linux - Security 3 02-07-2006 11:09 AM
Apache, SSL, autentication and third party client certificates bezoomny Linux - Security 1 10-13-2005 07:28 AM
DISCUSSION: Apache + SSL Howto SiegeX LinuxAnswers Discussion 1 11-21-2004 11:44 AM
Apache + SSL Howto SiegeX Slackware 21 09-16-2004 01:38 PM


All times are GMT -5. The time now is 04:52 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