Last active
April 15, 2020 16:03
-
-
Save mgeeky/de2ff50754a0a743109284ae570bfdf5 to your computer and use it in GitHub Desktop.
Let's Encrypt certbot command for Wildcard certficate request with CSR happening over DNS
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
#!/bin/bash | |
if [ $# -ne 1 ]; then | |
echo "Usage: ./certbot-wildcard-request.sh <domain-name>" | |
exit 1 | |
fi | |
DOMAIN=$1 | |
certbot certonly \ | |
-d $DOMAIN \ | |
-d *.$DOMAIN \ | |
--preferred-challenges=dns \ | |
--agree-tos \ | |
--manual \ | |
--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