Skip to content

Instantly share code, notes, and snippets.

@mrrooijen
Last active June 7, 2018 15:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrrooijen/9c6c963aa7fad0f3db097d738fcd33d1 to your computer and use it in GitHub Desktop.
Save mrrooijen/9c6c963aa7fad0f3db097d738fcd33d1 to your computer and use it in GitHub Desktop.
Command to produce a wildcard ssl certificate using the Let's Encrypt Certificate Authority. Verification is done using the DNS challenge. The resulting certificates can be found in ./ssl/live/example.com.
docker run -it --rm --name certbot \
-v $(pwd)/ssl:/etc/letsencrypt \
-v $(pwd)/ssl:/var/lib/letsencrypt \
certbot/certbot certonly \
--server https://acme-v02.api.letsencrypt.org/directory \
--manual \
--preferred-challenges dns \
-d *.example.com \
-d example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment