Skip to content

Instantly share code, notes, and snippets.

@ubogdan
Created September 16, 2021 15:07
Show Gist options
  • Save ubogdan/64dc05fd45786556896aad0823fe0d4a to your computer and use it in GitHub Desktop.
Save ubogdan/64dc05fd45786556896aad0823fe0d4a to your computer and use it in GitHub Desktop.

yum install certbot python2-certbot-nginx

Init

letsencrypt run -d domain.ro -d www.domain.ro

Cronfile

30 5 * * *  /usr/bin/letsencrypt renew --cert-name domain.ro --post-hook "/bin/systemctl restart nginx" --quiet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment