Skip to content

Commit

Permalink
Implement Changes of Terms of Service
Browse files Browse the repository at this point in the history
https://datatracker.ietf.org/doc/html/rfc8555#section-7.3.3
(which will never happen on Letsencrypt, but may on other CAs)
  • Loading branch information
systemcrash committed Sep 6, 2021
1 parent d9a2415 commit ca79565
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions acme_tiny.py
Original file line number Diff line number Diff line change
Expand Up @@ -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...")
Expand Down

0 comments on commit ca79565

Please sign in to comment.