Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-30-2007, 02:49 PM   #1
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

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 does anyone here know how I can create these certificates and get my server back online?
Old 01-31-2007, 04:15 AM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,900

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
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, 06:55 PM   #3
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, 07:22 PM   #4
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
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.


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

All times are GMT -5. The time now is 11:37 PM.

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