Skip to content

Instantly share code, notes, and snippets.

@liril-net
Last active December 13, 2018 02:42
Show Gist options
  • Save liril-net/2d6b580ee4ade51124478a17de604f27 to your computer and use it in GitHub Desktop.
Save liril-net/2d6b580ee4ade51124478a17de604f27 to your computer and use it in GitHub Desktop.
Get letsencrypt wildcard certificates
DOMAIN=foo.bar && \
docker run -it --rm --name letsencrypt \
-v "$PWD/letsencrypt/etc/letsencrypt:/etc/letsencrypt" \
-v "$PWD/letsencrypt/var/lib/letsencrypt:/var/lib/letsencrypt" \
quay.io/letsencrypt/letsencrypt:latest \
certonly \
-d $DOMAIN \
-d *.$DOMAIN \
--manual \
--preferred-challenges dns \
--server https://acme-v02.api.letsencrypt.org/directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment