Last active
February 16, 2020 14:57
-
-
Save Abreto/3f7f14660ff3f423e0fd6c0a2659a18f to your computer and use it in GitHub Desktop.
for wildcard domains
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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