diff --git a/acme_tiny.py b/acme_tiny.py index 98cd9e24..1d7bdb94 100755 --- a/acme_tiny.py +++ b/acme_tiny.py @@ -127,6 +127,9 @@ def _build_eab(url, eabkid, eabhmackey, jwk): if contact and code == 200: # 200 == already reg --> update response, _, _ = _send_signed_request(acct_headers['Location'], {"contact": contact}, "Error updating contact details") log.info("Updated contact details:\n{0}".format("\n".join(response['contact']))) + # https://datatracker.ietf.org/doc/html/rfc8555#section-7.3.3 : #userActionRequired only for TOS in RFC8555 + if code == 403 and response['type'] == 'urn:ietf:params:acme:error:userActionRequired': + log.info("You must agree to updated TOS:\n", response['instance']) # create a new order log.info("Creating new order...")