Error:- root@server:~# certbot-auto certonly -d the-d2.com -d www.the-d2.com –webroot “/home/the-d2/public_html” usage: certbot-auto [SUBCOMMAND] [options] [-d DOMAIN] [-d DOMAIN] … Certbot can obtain and install HTTPS/TLS/SSL certificates. By default, it will attempt to use a webserver both for obtaining and installing the certificate. certbot: error: unrecognized arguments: /home/the-d2/public_html Solution:- certbot-auto certonly -d the-d2.com -d www.the-d2.com –webroot –webroot-path “/home/the-d2/public_html” The issue was, i was missing the flag –webroot-path , but if you…
crontab -e @monthly letsencrypt-auto certonly –email [email protected] –agree-tos –webroot –renew-by-default -w /home/the-d2/public_html/ -d the-d2.com -d www.the-d2.com –authenticator webroot ; nginx -t && /etc/init.d/nginx reload
[root@server ~]# yum -y install git python-tools python-pip Loaded plugins: fastestmirror Setting up Install Process Loading mirror speeds from cached hostfile * base: centos.mirror.net.in * epel: repos.del.extreme-ix.org * extras: centos.excellmedia.net * remi: mirror.xeonbd.com * remi-php56: mirror.xeonbd.com * remi-safe: mirror.xeonbd.com * rpmforge: kartolo.sby.datautama.net.id * updates: centos.excellmedia.net Resolving Dependencies –> Running transaction check —> Package git.x86_64 0:1.7.1-4.el6_7.1 will be updated –> Processing Dependency: git = 1.7.1-4.el6_7.1 for package: perl-Git-1.7.1-4.el6_7.1.noarch —> Package git.x86_64…
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