SSL troubles "Invalid command '-----BEGIN'"
- 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
1 Reply
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.