@@ -82,7 +82,7 @@ def get_crt(account_key, csr, acme_dir, log=LOGGER, CA=DEFAULT_CA):
log.info("Registering account...")
code, result = _send_signed_request(CA + "/acme/new-reg", {
"resource": "new-reg",
- "agreement": "https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf",
+ "agreement": "https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf",
})
if code == 201:
log.info("Registered!")
@@ -11,7 +11,7 @@ def app(req, resp):
body = req['wsgi.input'].read(body_len).decode("utf8")
body = re.sub(r"[^A-Za-z0-9_\-\.]", "_", body)
KEY_AUTHORIZATION['uri'] = "/{0}".format(body.split(".", 1)[0])
- KEY_AUTHORIZATION['body'] = body
+ KEY_AUTHORIZATION['data'] = body
resp('201 Created', [])
return ["".encode("utf8")]
else: