Commit 00a0937c authored by Simon Ruderich's avatar Simon Ruderich

make license agreement configurable as LICENSE

parent f11bb1db
...@@ -6,6 +6,7 @@ set -o pipefail ...@@ -6,6 +6,7 @@ set -o pipefail
# default config values # default config values
CA="https://acme-v01.api.letsencrypt.org" CA="https://acme-v01.api.letsencrypt.org"
LICENSE="https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf"
. ./config.sh . ./config.sh
...@@ -168,7 +169,7 @@ thumbprint="$(printf '%s' "$(printf '%s' '{"e":"'"${pubExponent64}"'","kty":"RSA ...@@ -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 we generated a new private key in the step above we have to register it with the acme-server
if [ "${register}" = "1" ]; then if [ "${register}" = "1" ]; then
echo "+ Registering account key with letsencrypt..." 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 fi
# Generate certificates for all domains found in domain.txt (TODO: check if certificate already exists and is about to expire) # Generate certificates for all domains found in domain.txt (TODO: check if certificate already exists and is about to expire)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment