Skip to content

Instantly share code, notes, and snippets.

@malteos
Created December 2, 2018 12:38
Show Gist options
  • Save malteos/03f8f1a252844d792e0f75f65ad6934a to your computer and use it in GitHub Desktop.
Save malteos/03f8f1a252844d792e0f75f65ad6934a to your computer and use it in GitHub Desktop.
Obtain Lets-Encrypt SSL Certificate via Docker DNS challenge
# Obtain Lets-Encrypt SSL Certificate via Docker DNS challenge
# adjust:
# - domains (-d foo.me)
mkdir letsencrypt_etc letsencrypt_var
docker run -it --rm --name certbot \
-v "./letsencrypt_etc:/etc/letsencrypt" \
-v "./letsencrypt_var:/var/lib/letsencrypt" \
certbot/certbot certonly -d foo.me -d *.foo.me --manual --preferred-challenges dns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment