diff options
| author | rsiddharth <s@ricketyspace.net> | 2020-08-02 20:41:36 -0400 | 
|---|---|---|
| committer | rsiddharth <s@ricketyspace.net> | 2020-08-02 20:41:36 -0400 | 
| commit | 636679f4753565c5ff035251be73a6560a0313cb (patch) | |
| tree | 29372e47bf42f5ce183961f4a7d02bb7b9c88306 | |
| parent | 58c690696b965602500e72658854d804a0613cbf (diff) | |
acmens.py: sign_csr: update dns challenge info
- Format it like a bind9 DNS TXT record.
- Rename keyword argument `token` to `keyauth`.
| -rw-r--r-- | acmens.py | 7 | 
1 files changed, 3 insertions, 4 deletions
| @@ -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( | 
