BREAKING CHANGE: get a wildcard for the main domain sutty/sutty#13159
This commit is contained in:
parent
4b783cb9f1
commit
f545ef606f
1 changed files with 10 additions and 14 deletions
24
certbotd.sh
24
certbotd.sh
|
@ -46,22 +46,18 @@ case $1 in
|
||||||
touch "${updated}"
|
touch "${updated}"
|
||||||
;;
|
;;
|
||||||
bootstrap)
|
bootstrap)
|
||||||
for site in ${SUTTY} api.${SUTTY}; do
|
test -d "/etc/letsencrypt/live/${SUTTY}" && exit 0
|
||||||
test -d "/etc/letsencrypt/live/${site}" && exit 0
|
|
||||||
|
|
||||||
# Get the certificate for the domain, the webserver will need
|
# Get a single certificate for the whole domain
|
||||||
# access to this directory
|
/usr/bin/certbot \
|
||||||
/usr/bin/certbot certonly --email "certbot@${SUTTY}" \
|
-a dns-njalla \
|
||||||
--webroot \
|
--dns-njalla-credentials /etc/letsencrypt/njalla.ini \
|
||||||
--agree-tos \
|
--email "certbot@${SUTTY}" \
|
||||||
--webroot-path /var/lib/letsencrypt \
|
--agree-tos \
|
||||||
-d "${site}"
|
-d "${SUTTY}" \
|
||||||
|
-d "*.${SUTTY}"
|
||||||
|
|
||||||
cd /etc/letsencrypt/live
|
touch "${updated}"
|
||||||
ln -s ${SUTTY} default
|
|
||||||
|
|
||||||
touch "${updated}"
|
|
||||||
done
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
prune)
|
prune)
|
||||||
|
|
Loading…
Reference in a new issue