From ce79bf473244276cb413bda0621ba38ac7298151 Mon Sep 17 00:00:00 2001 From: Rodrigo Braga Date: Wed, 8 Aug 2018 14:48:02 -0300 Subject: [PATCH 1/4] add support to subdomains --- scripts/util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/util.sh b/scripts/util.sh index d7b60e3..be58cd9 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-v01.api.letsencrypt.org/directory -d $1 --http-01-port 1337 \ + https://acme-v01.api.letsencrypt.org/directory -d *.$1 -d $1 --http-01-port 1337 \ --standalone --standalone-supported-challenges http-01 --debug } From 41e0d3e9fc212ec655703b73c3e49caaf94f9d5a Mon Sep 17 00:00:00 2001 From: Rodrigo Braga Date: Wed, 8 Aug 2018 14:51:02 -0300 Subject: [PATCH 2/4] update version --- scripts/util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/util.sh b/scripts/util.sh index be58cd9..a7734a1 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-v01.api.letsencrypt.org/directory -d *.$1 -d $1 --http-01-port 1337 \ + https://acme-v02.api.letsencrypt.org/directory -d *.$1 -d $1 --http-01-port 1337 \ --standalone --standalone-supported-challenges http-01 --debug } From a1355e5b5f1636b22388f133129a6bb015584e8f Mon Sep 17 00:00:00 2001 From: Rodrigo Braga Date: Wed, 8 Aug 2018 16:39:57 -0300 Subject: [PATCH 3/4] isolates parameter inside quotes --- scripts/util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/util.sh b/scripts/util.sh index a7734a1..c435275 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" -d $1 --http-01-port 1337 \ --standalone --standalone-supported-challenges http-01 --debug } From ee1ca1f28ac049da4c570135e3acde9700afb21e Mon Sep 17 00:00:00 2001 From: Rodrigo Braga Date: Thu, 9 Aug 2018 08:46:12 -0300 Subject: [PATCH 4/4] fix scape --- scripts/util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/util.sh b/scripts/util.sh index c435275..c289ba6 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 -d $1 --http-01-port 1337 \ --standalone --standalone-supported-challenges http-01 --debug }