certbot/acme
Adrien Ferrand 339d034d6a Remove keyAuthorization field from the challenge response JWS token (#6758)
Fixes #6755.

POSTing the `keyAuthorization` in a JWS token when answering an ACME challenge, has been deprecated for some time now. Indeed, this is superfluous as the request is already authentified by the JWS signature.

Boulder still accepts to see this field in the JWS token, and ignore it. Pebble in non strict mode also. But Pebble in strict mode refuses the request, to prepare complete removal of this field in ACME v2.

Certbot still sends the `keyAuthorization` field. This PR removes it, and makes Certbot compliant with current ACME v2 protocol, and so Pebble in strict mode.

See also [letsencrypt/pebble#192](https://github.com/letsencrypt/pebble/issues/192) for implementation details server side.

* New implementation, with a fallback.

* Add deprecation on changelog

* Update acme/acme/client.py

Co-Authored-By: adferrand <adferrand@users.noreply.github.com>

* Fix an instance parameter

* Update changelog, extend coverage

* Update comment

* Add unit tests on keyAuthorization dump

* Update acme/acme/client.py

Co-Authored-By: adferrand <adferrand@users.noreply.github.com>

* Restrict the magic of setting a variable in immutable object in one place. Make a soon to be removed method private.
2019-02-27 09:21:47 -08:00
..
acme Remove keyAuthorization field from the challenge response JWS token (#6758) 2019-02-27 09:21:47 -08:00
docs Remove ACMEv1 example. (#6668) 2019-01-22 10:39:31 +01:00
examples Add acme library usage example (http-01) (#5494) 2019-02-22 18:02:43 -08:00
LICENSE.txt Update Copyright notice in subpackages LICENSE. 2015-10-04 10:10:41 +00:00
MANIFEST.in Fixes #6085. (#6091) 2018-06-12 17:31:22 -07:00
pytest.ini Fixes #6085. (#6091) 2018-06-12 17:31:22 -07:00
README.rst Fix ACME module description 2015-10-21 17:06:35 -07:00
readthedocs.org.requirements.txt Per subpkg requirements.txt for RTD 2015-10-21 17:06:36 -07:00
setup.cfg Make wheel universal 2016-01-21 10:11:23 +01:00
setup.py Fix test sdists with atexit handlers (#6769) 2019-02-21 16:55:08 -08:00

ACME protocol implementation in Python