Description: Update outdated version of the subscriber agreement
Author: Daniel Roesler <diafygi@gmail.com>
Bug-Debian: https://bugs.debian.org/882693
Origin: upstream, https://github.com/diafygi/acme-tiny/commit/19b274cf38544ad9ccc69aa140969c30c4e0d8fd
Bug: https://github.com/diafygi/acme-tiny/pull/145
Forwarded: not-needed
Reviewed-By: Sebastien Badia <sbadia@debian.org>
Last-Update: 2018-02-22

--- acme-tiny-20160801.orig/acme_tiny.py
+++ acme-tiny-20160801/acme_tiny.py
@@ -82,7 +82,7 @@ def get_crt(account_key, csr, acme_dir,
     log.info("Registering account...")
     code, result = _send_signed_request(CA + "/acme/new-reg", {
         "resource": "new-reg",
-        "agreement": "https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf",
+        "agreement": json.loads(urlopen(CA + "/directory").read().decode('utf8'))['meta']['terms-of-service'],
     })
     if code == 201:
         log.info("Registered!")
