Skip to content

Instantly share code, notes, and snippets.

@mgeeky
Last active April 15, 2020 16:03
Show Gist options
  • Save mgeeky/de2ff50754a0a743109284ae570bfdf5 to your computer and use it in GitHub Desktop.
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
#!/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