Skip to content

Instantly share code, notes, and snippets.

@ipedrazas
Last active March 28, 2019 12:24
Show Gist options
  • Save ipedrazas/16bc3c7216a2c522f8c98c2602009485 to your computer and use it in GitHub Desktop.
Save ipedrazas/16bc3c7216a2c522f8c98c2602009485 to your computer and use it in GitHub Desktop.
docker renew wildcard cert with letsencrypt
# First we start the manual process, this will give us the details of the TXT entry we
# have to use
docker run --rm -it \
-v "${HOME}/.acme":/acme.sh \
-e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \
-e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY \
-e HOME=/root \
neilpang/acme.sh --issue --dns -d "*.istio.sandbox.nutmeg.co.uk" --yes-I-know-dns-manual-mode-enough-go-ahead-please
# Once the TXT record has been created we run this command that generates the certs
docker run --rm -it \
-v "${HOME}/.acme":/acme.sh \
-e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \
-e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY \
-e HOME=/root \
neilpang/acme.sh --issue --dns -d "*.istio.sandbox.nutmeg.co.uk" --yes-I-know-dns-manual-mode-enough-go-ahead-please --renew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment