summaryrefslogtreecommitdiffstats
path: root/acmens.py
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2020-08-02 20:41:36 -0400
committerrsiddharth <s@ricketyspace.net>2020-08-02 20:41:36 -0400
commit636679f4753565c5ff035251be73a6560a0313cb (patch)
tree29372e47bf42f5ce183961f4a7d02bb7b9c88306 /acmens.py
parent58c690696b965602500e72658854d804a0613cbf (diff)
acmens.py: sign_csr: update dns challenge info
- Format it like a bind9 DNS TXT record. - Rename keyword argument `token` to `keyauth`.
Diffstat (limited to 'acmens.py')
-rw-r--r--acmens.py7
1 files 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(