From 636679f4753565c5ff035251be73a6560a0313cb Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sun, 2 Aug 2020 20:41:36 -0400 Subject: acmens.py: sign_csr: update dns challenge info - Format it like a bind9 DNS TXT record. - Rename keyword argument `token` to `keyauth`. --- acmens.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/acmens.py b/acmens.py index 098903a..caaea4d 100644 --- a/acmens.py +++ b/acmens.py @@ -216,17 +216,16 @@ def sign_csr(account_key, csr, email=None, challenge_type='http'): if challenge_type == 'dns': sys.stderr.write( """\ -Please update your DNS to have the following TXT record: +Please update your DNS for {domain} to have the following TXT record: -------------- -DNS TXT record: _acme-challenge.{domain} -DNS TXT record contents: \"{token}\" +_acme-challenge IN TXT ( \"{keyauth}\" ) -------------- Notes: - Do not include the quotes in the TXT record. -""".format(domain=domain.replace('*.', ''), token=dns_payload)) +""".format(domain=domain.replace('*.', ''), keyauth=dns_payload)) else: # Challenge response for http server. response_uri = ".well-known/acme-challenge/{0}".format( -- cgit v1.2.3