Sunday, July 26, 2020

Apache installing SSL on AWS

Navigate to folder /etc/httpd/conf
now locate the httpd.conf file

Need to insert the below lines


    DocumentRoot /var/www/html2
    ServerName www.yourdomain.com
        SSLEngine on
        SSLCertificateFile /path/to/your_domain_name.crt
        SSLCertificateKeyFile /path/to/your_private.key
        SSLCertificateChainFile /path/to/DigiCertCA.crt
   


After specifying it was getting into this error below

AH00526: Syntax error on line 47 of /etc/httpd/conf/httpd.conf:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration

Googling around, got this info
https://www.namecheap.com/support/knowledgebase/article.aspx/9793/2238/invalid-command-sslengine-error-on-apache


To restart the server quickly, can use this command

sudo apachectl restart


references:
https://httpd.apache.org/docs/2.4/vhosts/examples.html
https://www.digicert.com/kb/csr-ssl-installation/apache-openssl.htm

No comments:

Post a Comment