Skip to content

Instantly share code, notes, and snippets.

@RatserX
Last active November 27, 2020 23:14
Show Gist options
  • Save RatserX/8cc6860fde9ea5046d07d1f724a517e1 to your computer and use it in GitHub Desktop.
Save RatserX/8cc6860fde9ea5046d07d1f724a517e1 to your computer and use it in GitHub Desktop.
Setup NGINX on CentOS/RHEL for handling Let's Encrypt wildcard SSL certificates

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 [email protected] --installer nginx --no-eff-email

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment