diff --git a/certbotd.sh b/certbotd.sh index 069af00..b5eeaf4 100755 --- a/certbotd.sh +++ b/certbotd.sh @@ -137,10 +137,13 @@ case $1 in # access to this directory /usr/bin/certbot certonly --email "certbot@${SUTTY}" \ -n \ + --expand \ --webroot \ --agree-tos \ --webroot-path /var/lib/letsencrypt \ - -d "${domain}" || ensure $? + -d "${domain}" \ + -d "api.${domain}" \ + -d "www.${domain}" || ensure $? touch "${updated}" done