Monday, April 25, 2016

installing ssl certificate/enabling https on apache,amazon linux with letsencrypt

yum install mod24_ssl openssl
cd letsencrypt/
./letsencrypt-auto --debug certonly --webroot -w /var/www/html/abc -d

Edit httpd.conf

<IfModule mod_ssl.c>
    Listen 443

<VirtualHost *:443>
        SSLEngine on
        SSLCertificateFile /etc/letsencrypt/live/
        SSLCertificateKeyFile /etc/letsencrypt/live/
        SSLCertificateChainFile /etc/letsencrypt/live/
        <Directory "/var/www/html/abc">
                Options Indexes FollowSymLinks
                AllowOverride All
                Order allow,deny
                Allow from all
        DocumentRoot "/var/www/html/abc"

service httpd restart


Blogger said...

There is a chance you're qualified to get a $1,000 Amazon Gift Card.

Blogger said...

BlueHost is ultimately the best web-hosting provider for any hosting services you require.

Blog Archive