From 66dab3c93242a1c2de5d3aa16b7dfca3ac2240f2 Mon Sep 17 00:00:00 2001 From: Christian Winther Date: Mon, 26 Oct 2020 23:24:55 +0100 Subject: [PATCH] Allow expanding certs via extra_domains_conf Without this change, you get errors from certbot asking (interactively) if you want to replace/expand the certificate Manually fixing this involve deleting all the files for the domain in question and rerunning which is way more destructive --- src/scripts/util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/util.sh b/src/scripts/util.sh index 78475a1..a3e6aa4 100644 --- a/src/scripts/util.sh +++ b/src/scripts/util.sh @@ -81,7 +81,7 @@ get_certificate() { opt_domains=$(for i in $1; do printf -- "-d $i "; done;) echo "running certbot ... $letsencrypt_url $1 $2" - certbot certonly --agree-tos --keep -n --text --email $2 --server \ + certbot certonly --expand --agree-tos --keep -n --text --email $2 --server \ $letsencrypt_url $opt_domains --http-01-port 1337 \ --standalone --preferred-challenges http-01 --debug }