Commit 1c7a33d7 authored by Adrien Dorsaz's avatar Adrien Dorsaz
Browse files

v2: fix TTL type to create TXT resource

parent 230998d8
Pipeline #192 failed with stage
in 3 minutes and 45 seconds
......@@ -182,7 +182,7 @@ def get_crt(config, log=LOGGER):
keyauthorization = "{0}.{1}".format(token, thumbprint)
keydigest64 = _b64(hashlib.sha256(keyauthorization.encode("utf8")).digest())
dnsrr_domain = "_acme-challenge.{0}.".format(domain)
dnsrr_set = dns.rrset.from_text(dnsrr_domain, config["DNS"]["TTL"], "IN", "TXT", '"{0}"'.format(keydigest64))
dnsrr_set = dns.rrset.from_text(dnsrr_domain, config["DNS"].getint("TTL"), "IN", "TXT", '"{0}"'.format(keydigest64))
_update_dns(dnsrr_set, "add")
except dns.exception.DNSException as dnsexception:
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