Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Jun 29, 2010 11:15 pm 
Offline
Senior Newbie

Joined: Sat Apr 03, 2010 3:37 pm
Posts: 13
Ok so I have followed the guides I have a nameCheap rapidSSL certificate booting ubuntu. I followed one of the guides in the library for installing a commercial CA certificate but now I can't even restart apache. I am getting this error:

* Restarting web server apache2
Syntax error on line 1 of /etc/apache2/conf.d/ssl.crt/adsreloaded.crt:
Invalid command '-----BEGIN', perhaps misspelled or defined by a module not included in the server configuration
...fail!

What does this even mean? Clearly it doesn't like my crt but I have no idea why. Also removing the SSL on CertificateFile info from the virtualHost configuration still throws the error.... Any ideas?

Thanks


Top
   
 Post subject:
PostPosted: Wed Jun 30, 2010 1:32 am 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
You're getting that error because you put your certificate under the /etc/apache2/conf.d directory. Anything under that directory will be interpreted as an Apache configuration file. A certificate is not a configuration file, so Apache can't interpret it.

Just move the certificate and key to a different location, such as /etc/ssl or /etc/apache2/ssl or /root/ssl or whatever else you find convenient. But remember to chown them to root and chmod them to 600. The directory where the certificate and key are stored should be 700. You don't want anybody other than root to have access to your certificates.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group