Last active
December 13, 2018 02:42
-
-
Save liril-net/2d6b580ee4ade51124478a17de604f27 to your computer and use it in GitHub Desktop.
Get letsencrypt wildcard certificates
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
DOMAIN=foo.bar && \ | |
docker run -it --rm --name letsencrypt \ | |
-v "$PWD/letsencrypt/etc/letsencrypt:/etc/letsencrypt" \ | |
-v "$PWD/letsencrypt/var/lib/letsencrypt:/var/lib/letsencrypt" \ | |
quay.io/letsencrypt/letsencrypt:latest \ | |
certonly \ | |
-d $DOMAIN \ | |
-d *.$DOMAIN \ | |
--manual \ | |
--preferred-challenges dns \ | |
--server https://acme-v02.api.letsencrypt.org/directory |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment