PDA

View Full Version : apache ssl error


gmclachl
March 13th, 2006, 09:34 AM
Hi,
I am trying to set up apache ssl. I have the cert and the key and have added

SLCertificateFile /usr/local/apache/conf/ssl.crt/domainname.crt
SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/domainname.key

to my httpd.conf but when i try to restart i get

'-----BEGIN', perhaps mis-spelled or defined by a module not included in the server configuration

Thanks
George

MJN
March 13th, 2006, 09:39 AM
For a start you're missing an 'S' from the first directive... however I suspect that typo appears only on here...

Regarding the actual error, have you grep'd for -----BEGIN in your config files?

Mathew

gmclachl
March 13th, 2006, 09:45 AM
Hi Matthew,
Yeah, you are right it is a typo.

SSLCertificateFile /usr/local/apache/conf/ssl.crt/domainname.crt
SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/domainname.key

both point to the key and the cert.

The -----BEGIN

is the first line of the certificate.

George

MJN
March 13th, 2006, 10:23 AM
Okay. If noone can help in the meantime I'll check my config tonight (7pm GMT) and take it from there.

Mathew

gmclachl
March 13th, 2006, 10:45 AM
Managed to solve it. I moved the ssl dir's from conf.d up one level, restarted and it worked.
Thanks for the help.

George

gmclachl
March 13th, 2006, 11:47 AM
EDIT
Fixed