From: Simon Ruderich Date: Sat, 5 Dec 2015 17:25:02 +0000 (+0100) Subject: make license agreement configurable as LICENSE X-Git-Tag: v0.1.0~212^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00a0937c1f9bef32ccbfea5c87b0edeacfa525ca;p=thirdparty%2Fdehydrated.git make license agreement configurable as LICENSE --- diff --git a/letsencrypt.sh b/letsencrypt.sh index 17f5ab3..cefdb00 100755 --- a/letsencrypt.sh +++ b/letsencrypt.sh @@ -6,6 +6,7 @@ set -o pipefail # default config values CA="https://acme-v01.api.letsencrypt.org" +LICENSE="https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf" . ./config.sh @@ -168,7 +169,7 @@ thumbprint="$(printf '%s' "$(printf '%s' '{"e":"'"${pubExponent64}"'","kty":"RSA # If we generated a new private key in the step above we have to register it with the acme-server if [ "${register}" = "1" ]; then echo "+ Registering account key with letsencrypt..." - signed_request "${CA}/acme/new-reg" '{"resource": "new-reg", "agreement": "https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf"}' > /dev/null + signed_request "${CA}/acme/new-reg" '{"resource": "new-reg", "agreement": "'"$LICENSE"'"}' > /dev/null fi # Generate certificates for all domains found in domain.txt (TODO: check if certificate already exists and is about to expire)