Skip to content

Instantly share code, notes, and snippets.

@Abreto
Last active February 16, 2020 14:57
Show Gist options
  • Save Abreto/3f7f14660ff3f423e0fd6c0a2659a18f to your computer and use it in GitHub Desktop.
Save Abreto/3f7f14660ff3f423e0fd6c0a2659a18f to your computer and use it in GitHub Desktop.
for wildcard domains
#!/usr/bin/env sh
# certbot certonly --manual --preferred-challenges=dns-01 --server=https://acme-v02.api.letsencrypt.org/directory
set -x
new () {
docker run --rm -it \
-v "$(pwd)":/etc/letsencrypt \
certbot/certbot \
certonly \
--manual \
--preferred-challenges=dns-01 \
--server=https://acme-v02.api.letsencrypt.org/directory
}
renew () {
docker run --rm -it \
-v "$(pwd)":/etc/letsencrypt \
certbot/certbot \
renew
}
"$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment