Skip to content

Commit 3a2c01f

Browse files
committed
Implement Changes of Terms of Service
https://datatracker.ietf.org/doc/html/rfc8555#section-7.3.3 (which will never happen on Letsencrypt, but may on other CAs)
1 parent f15c705 commit 3a2c01f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

acme_tiny.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ def _build_eab(url, eabkid, eabhmackey, jwk):
127127
if contact and code == 200: # 200 == already reg --> update
128128
response, _, _ = _send_signed_request(acct_headers['Location'], {"contact": contact}, "Error updating contact details")
129129
log.info("Updated contact details:\n{0}".format("\n".join(response['contact'])))
130+
# https://datatracker.ietf.org/doc/html/rfc8555#section-7.3.3 : #userActionRequired only for TOS in RFC8555
131+
if code == 403 and response['type'] == 'urn:ietf:params:acme:error:userActionRequired':
132+
log.info("You must agree to updated TOS:\n", response['instance'])
130133

131134
# create a new order
132135
log.info("Creating new order...")

0 commit comments

Comments
 (0)