Skip to content

Instantly share code, notes, and snippets.

@mahemoff
Last active August 21, 2022 05:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mahemoff/f033b1f8ccd6e259a1f5041ba7905d94 to your computer and use it in GitHub Desktop.
Save mahemoff/f033b1f8ccd6e259a1f5041ba7905d94 to your computer and use it in GitHub Desktop.
Certbot for Apache one-liner
# Certbot can be a bit tedious, but it's easy to automate a one-liner non-interactive. Substitute your own domain and email below.
sudo service apache2 stop && sudo certbot --apache -d example.com -m admin@example.com --non-interactive --agree-tos && sudo service apache2 start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment