Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-30-2007, 01:49 PM
|
#1
|
|
Member
Registered: Mar 2004
Posts: 31
Rep:
|
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?
|
|
|
|
01-31-2007, 03:15 AM
|
#2
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,363
|
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.
|
|
|
|
01-31-2007, 05:55 PM
|
#3
|
|
Member
Registered: Mar 2004
Posts: 31
Original Poster
Rep:
|
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.
|
|
|
|
01-31-2007, 06:22 PM
|
#4
|
|
Moderator
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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 |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:42 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|