Setup NGINX on CentOS/RHEL for handling Let's Encrypt wildcard SSL certificates =============== PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin /usr/bin/certbot certonly --agree-tos --domains domain.com,sub1.domain.com,sub2.domain.com --nginx /usr/bin/certbot certonly --agree-tos --domains domain.com,sub1.domain.com,sub2.domain.com,sub3.domain.com --expand --nginx /usr/bin/certbot certonly --agree-tos --dns-cloudflare --dns-cloudflare-credentials ~/.secrets/certbot/cloudflare.ini --domains domain.com,*.domain.com --email account@main.com --installer nginx --no-eff-email #### References - https://certbot.eff.org/lets-encrypt/centosrhel7-nginx - https://community.letsencrypt.org/t/cerbot-doesnt-automatically-renew-ssl-after-90-days/83440/5 - https://community.letsencrypt.org/t/domain-and-subdomain-on-one-wildcard-certificate-on-nginx/107675/4 - https://community.letsencrypt.org/t/nginx-add-new-subdomain/53615 - https://linuxize.com/post/scheduling-cron-jobs-with-crontab/ - https://www.nginx.com/blog/using-free-ssltls-certificates-from-lets-encrypt-with-nginx/