From c439a4793c2c395a50ac3d825bf6f7ec6886bdbf Mon Sep 17 00:00:00 2001 From: Brielle Date: Tue, 21 Mar 2017 16:29:08 -0600 Subject: [PATCH] Detect binary location --- gen-cert.sh | 2 +- gen-unifi-cert.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gen-cert.sh b/gen-cert.sh index 52f5f8d..84c95f3 100755 --- a/gen-cert.sh +++ b/gen-cert.sh @@ -27,7 +27,7 @@ PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" # Original proxy idea from: # http://evolvedigital.co.uk/how-to-get-letsencrypt-working-with-ispconfig-3/ -PROXYAUTH="--standalone --standalone-supported-challenges http-01 --http-01-port 9999" +PROXYAUTH="--standalone --preferred-challenges http-01 --http-01-port 9999" # Location of LetsEncrypt binary we use. Leave unset if you want to let it find automatically #LEBINARY="/usr/src/letsencrypt/certbot-auto" diff --git a/gen-unifi-cert.sh b/gen-unifi-cert.sh index c358d84..51c45a8 100755 --- a/gen-unifi-cert.sh +++ b/gen-unifi-cert.sh @@ -86,7 +86,7 @@ if [[ ${onlyinsert} != "yes" ]]; then ${LEBINARY} \ --server https://acme-v01.api.letsencrypt.org/directory \ --agree-tos \ - --standalone --standalone-supported-challenges tls-sni-01 \ + --standalone --preferred-challenges tls-sni-01 \ ${LEOPTIONS} fi