Skip to content

Instantly share code, notes, and snippets.

@smj10j
Last active November 22, 2016 16:29
Show Gist options
  • Save smj10j/93ba269411dca38d3fe440c19bf7bce5 to your computer and use it in GitHub Desktop.
Save smj10j/93ba269411dca38d3fe440c19bf7bce5 to your computer and use it in GitHub Desktop.
create a basic cert with letsencrypt's certbot
#!/usr/bin/env bash
# Halt on any errors
set -e
# Debugging
set -x
DOMAIN=southwest.mac.smj10j.net
[email protected]
sudo certbot certonly --standalone --http-01-port 80 --tls-sni-01-port 443 --domain "${DOMAIN}" --email "${ADMIN_EMAIL}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment