Skip to content

Instantly share code, notes, and snippets.

@asabla
Last active May 11, 2018 10:29
Show Gist options
  • Save asabla/8755ab73a11bb035907070bc1f07902d to your computer and use it in GitHub Desktop.
Save asabla/8755ab73a11bb035907070bc1f07902d to your computer and use it in GitHub Desktop.
Docker certbot examples
docker run -it --name certbot \
-v <certs>:/etc/letsencrypt \
-v <logs>:/var/lib/letsencrypt \
-v <do-secret>:/.secrets \
certbot/dns-digitalocean certonly \
--agree-tos \
--dns-digitalocean \
--dns-digitalocean-credentials /.secrets/do-token.ini \
--dns-digitalocean-propagation-seconds 60 \
--preferred-challenges dns-01 \
--server https://acme-v02.api.letsencrypt.org/directory \
-d asabla.net -d *.asabla.net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment