Let’s Encrypt on CentOS 6/7 with Nginx/Apache
yum -y install yum-utils
yum install certbot -y
certbot certonly -d the-d2.com -d www.the-d2.com –dry-run –webroot –renew-by-default -w /home/the-d2/public_html –authenticator webroot
Now in the output you will see the geenrated certs path, use them in your virtualhost and reload the webserver nignx / apache
Setup renewel Cron:-
certbot certonly -d the-d2.com -d www.the-d2.com –webroot –renew-by-default -w /home/the-d2/public_html –authenticator webroot