Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save mbredikhin/0b5a1f5ab62959d21be3a3d621c75bb6 to your computer and use it in GitHub Desktop.

Select an option

Save mbredikhin/0b5a1f5ab62959d21be3a3d621c75bb6 to your computer and use it in GitHub Desktop.
Add letsencrypt cert with autorenewal everyday at 3:00 AM
sudo certbot --nginx -d yourdomain.com
sudo crontab -e
0 3 * * * certbot renew --quiet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment