python3-acme has been upgraded since initial pinning in certcentral:
vgutierrez@certcentral1001:~$ apt-cache policy python3-acme python3-acme: Installed: 0.25.1-1~bpo9+1 Candidate: 0.28.0-1~bpo9+1 Version table: 0.28.0-1~bpo9+1 1001 100 http://mirrors.wikimedia.org/debian stretch-backports/main amd64 Packages *** 0.25.1-1~bpo9+1 100 100 /var/lib/dpkg/status 0.10.2-1 500 500 http://mirrors.wikimedia.org/debian stretch/main amd64 Packages
Running the current tests using acme==0.28.1 triggers the following errors:
(certcentral3) willikins:certcentral vgutierrez$ python -m unittest discover -k ACMEIntegrationTests -s ./tests/ /Users/vgutierrez/.virtualenvs/certcentral3/lib/python3.7/site-packages/urllib3/connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verifi cation is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecureRequestWarning) .EEE ====================================================================== ERROR: test_full_workflow_dns_challenge (test_acme_requests.ACMEIntegrationTests) Expects pebble to be invoked with PEBBLE_VA_ALWAYS_VALID=1 ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/vgutierrez/wikimedia.org/operations/software/certcentral/tests/test_acme_requests.py", line 171, in test_full_workflow_dns_challenge session = ACMERequests(account) File "/Users/vgutierrez/wikimedia.org/operations/software/certcentral/certcentral/acme_requests.py", line 331, in __init__ if not self._account_is_valid(): File "/Users/vgutierrez/wikimedia.org/operations/software/certcentral/certcentral/acme_requests.py", line 343, in _account_is_valid regr = self.acme_client.update_registration(self.acme_account.regr) File "/Users/vgutierrez/.virtualenvs/certcentral3/lib/python3.7/site-packages/acme/client.py", line 621, in update_registration new_regr = self._get_v2_account(regr) File "/Users/vgutierrez/.virtualenvs/certcentral3/lib/python3.7/site-packages/acme/client.py", line 627, in _get_v2_account response = self._post(self.directory['newAccount'], only_existing_reg) File "/Users/vgutierrez/.virtualenvs/certcentral3/lib/python3.7/site-packages/acme/client.py", line 94, in _post return self.net.post(*args, **kwargs) File "/Users/vgutierrez/.virtualenvs/certcentral3/lib/python3.7/site-packages/acme/client.py", line 1130, in post return self._post_once(*args, **kwargs) File "/Users/vgutierrez/.virtualenvs/certcentral3/lib/python3.7/site-packages/acme/client.py", line 1144, in _post_once data = self._wrap_in_jws(obj, self._get_nonce(url, new_nonce_url), url, acme_version) File "/Users/vgutierrez/.virtualenvs/certcentral3/lib/python3.7/site-packages/acme/client.py", line 946, in _wrap_in_jws jobj = obj.json_dumps(indent=2).encode() AttributeError: 'NoneType' object has no attribute 'json_dumps' ====================================================================== ERROR: test_full_workflow_ec_certificate (test_acme_requests.ACMEIntegrationTests) Expects pebble to be invoked with PEBBLE_VA_ALWAYS_VALID=1 ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/vgutierrez/wikimedia.org/operations/software/certcentral/tests/test_acme_requests.py", line 252, in test_full_workflow_ec_certificate session = ACMERequests(account) File "/Users/vgutierrez/wikimedia.org/operations/software/certcentral/certcentral/acme_requests.py", line 331, in __init__ if not self._account_is_valid(): File "/Users/vgutierrez/wikimedia.org/operations/software/certcentral/certcentral/acme_requests.py", line 343, in _account_is_valid regr = self.acme_client.update_registration(self.acme_account.regr) File "/Users/vgutierrez/.virtualenvs/certcentral3/lib/python3.7/site-packages/acme/client.py", line 621, in update_registration new_regr = self._get_v2_account(regr) File "/Users/vgutierrez/.virtualenvs/certcentral3/lib/python3.7/site-packages/acme/client.py", line 627, in _get_v2_account response = self._post(self.directory['newAccount'], only_existing_reg) File "/Users/vgutierrez/.virtualenvs/certcentral3/lib/python3.7/site-packages/acme/client.py", line 94, in _post return self.net.post(*args, **kwargs) File "/Users/vgutierrez/.virtualenvs/certcentral3/lib/python3.7/site-packages/acme/client.py", line 1130, in post return self._post_once(*args, **kwargs) File "/Users/vgutierrez/.virtualenvs/certcentral3/lib/python3.7/site-packages/acme/client.py", line 1144, in _post_once data = self._wrap_in_jws(obj, self._get_nonce(url, new_nonce_url), url, acme_version) File "/Users/vgutierrez/.virtualenvs/certcentral3/lib/python3.7/site-packages/acme/client.py", line 946, in _wrap_in_jws jobj = obj.json_dumps(indent=2).encode() AttributeError: 'NoneType' object has no attribute 'json_dumps' ====================================================================== ERROR: test_full_workflow_http_challenge (test_acme_requests.ACMEIntegrationTests) Expects pebble to be invoked with PEBBLE_VA_ALWAYS_VALID=1 ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/vgutierrez/wikimedia.org/operations/software/certcentral/tests/test_acme_requests.py", line 215, in test_full_workflow_http_challenge session = ACMERequests(account) File "/Users/vgutierrez/wikimedia.org/operations/software/certcentral/certcentral/acme_requests.py", line 331, in __init__ if not self._account_is_valid(): File "/Users/vgutierrez/wikimedia.org/operations/software/certcentral/certcentral/acme_requests.py", line 343, in _account_is_valid regr = self.acme_client.update_registration(self.acme_account.regr) File "/Users/vgutierrez/.virtualenvs/certcentral3/lib/python3.7/site-packages/acme/client.py", line 621, in update_registration new_regr = self._get_v2_account(regr) File "/Users/vgutierrez/.virtualenvs/certcentral3/lib/python3.7/site-packages/acme/client.py", line 627, in _get_v2_account response = self._post(self.directory['newAccount'], only_existing_reg) File "/Users/vgutierrez/.virtualenvs/certcentral3/lib/python3.7/site-packages/acme/client.py", line 94, in _post return self.net.post(*args, **kwargs) File "/Users/vgutierrez/.virtualenvs/certcentral3/lib/python3.7/site-packages/acme/client.py", line 1130, in post return self._post_once(*args, **kwargs) File "/Users/vgutierrez/.virtualenvs/certcentral3/lib/python3.7/site-packages/acme/client.py", line 1144, in _post_once data = self._wrap_in_jws(obj, self._get_nonce(url, new_nonce_url), url, acme_version) File "/Users/vgutierrez/.virtualenvs/certcentral3/lib/python3.7/site-packages/acme/client.py", line 946, in _wrap_in_jws jobj = obj.json_dumps(indent=2).encode() AttributeError: 'NoneType' object has no attribute 'json_dumps' ---------------------------------------------------------------------- Ran 4 tests in 1.436s FAILED (errors=3)