Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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