From c155cde276e02693e04b7a154170f713017b9428 Mon Sep 17 00:00:00 2001 From: Grzegorz Kosciolek Date: Fri, 17 Aug 2018 21:49:37 +0200 Subject: [PATCH 1/2] Do not try to get certificate for wildcard domains as this is no longer supported by certbot --- scripts/util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/util.sh b/scripts/util.sh index c289ba6..a3b65b4 100644 --- a/scripts/util.sh +++ b/scripts/util.sh @@ -60,6 +60,6 @@ auto_enable_configs() { get_certificate() { echo "Getting certificate for domain $1 on behalf of user $2" certbot certonly --agree-tos --keep -n --text --email $2 --server \ - https://acme-v02.api.letsencrypt.org/directory -d \*.$1 -d $1 --http-01-port 1337 \ + https://acme-v02.api.letsencrypt.org/directory -d $1 --http-01-port 1337 \ --standalone --standalone-supported-challenges http-01 --debug } From 27ecefec40485cd0eb99020c03c1bbc3a0f3f691 Mon Sep 17 00:00:00 2001 From: Grzegorz Kosciolek Date: Fri, 17 Aug 2018 22:43:26 +0200 Subject: [PATCH 2/2] Fix the loop to make it sh compatible --- scripts/util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/util.sh b/scripts/util.sh index a3b65b4..afe376e 100644 --- a/scripts/util.sh +++ b/scripts/util.sh @@ -16,7 +16,7 @@ error() { parse_domains() { # For each configuration file in /etc/nginx/conf.d/*.conf* for conf_file in /etc/nginx/conf.d/*.conf*; do - sed -n -e 's&^\s*ssl_certificate_key\s*\/etc/letsencrypt/live/\(.*\)/privkey.pem;&\1&p' $conf_file | xargs echo | tr ' ' ',' + sed -n -e 's&^\s*ssl_certificate_key\s*\/etc/letsencrypt/live/\(.*\)/privkey.pem;&\1&p' $conf_file | xargs echo done }