Skip to content

Instantly share code, notes, and snippets.

@jpmens
Last active March 5, 2019 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpmens/e3060d87ffd4ff42d51c63438f82ecef to your computer and use it in GitHub Desktop.
Save jpmens/e3060d87ffd4ff42d51c63438f82ecef to your computer and use it in GitHub Desktop.
--- acme_dns_tiny.py.orig 2019-03-05 20:18:14.000000000 +0100
+++ acme_dns_tiny.py 2019-03-05 14:31:21.000000000 +0100
@@ -264,7 +264,7 @@
raise ValueError("Finalizing order {0} got errors: {1}".format(http_response.status_code, result))
if 'link' in http_response.headers:
- log.info(" - Certificate links given by server: {0}", http_response.headers['link'])
+ log.info(" - Certificate links given by server: {0}".format(http_response.headers['link']))
log.info("Certificate signed and chain received: {0}".format(order["certificate"]))
return http_response.text
Python 3.7.2
...
Read account key.
Read CSR to find domains to validate.
Register ACME Account.
Terms of service exists and will be automatically agreed, please read them: https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf
Update contact information if needed.
Request to the ACME server an order to validate domains.
No challenge to process: order is already ready.
Request to finalize the order (all chalenge have been completed)
Order finalized!
--- Logging error ---
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/logging/__init__.py", line 1034, in emit
msg = self.format(record)
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/logging/__init__.py", line 880, in format
return fmt.format(record)
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/logging/__init__.py", line 619, in format
record.message = record.getMessage()
File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/logging/__init__.py", line 380, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "acme_dns_tiny.py", line 309, in <module>
main(sys.argv[1:])
File "acme_dns_tiny.py", line 305, in main
signed_crt = get_crt(config, log=LOGGER)
File "acme_dns_tiny.py", line 267, in get_crt
log.info(" - Certificate links given by server: {0}", http_response.headers['link'])
Message: ' - Certificate links given by server: {0}'
Arguments: ('<https://acme-v02.api.letsencrypt.org/index>;rel="index"',)
Certificate signed and chain received: https://acme-v02.api.letsencrypt.org/acme/cert/039......
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment