Simplify the ACME example client by using an existing method

This commit is contained in:
Alex Gaynor
2015-12-12 14:50:26 -05:00
parent 0751244597
commit 916a946bcd
+1 -2
View File
@@ -28,8 +28,7 @@ acme = client.Client(DIRECTORY_URL, key)
regr = acme.register()
logging.info('Auto-accepting TOS: %s', regr.terms_of_service)
acme.update_registration(regr.update(
body=regr.body.update(agreement=regr.terms_of_service)))
acme.agree_to_tos(regr)
logging.debug(regr)
authzr = acme.request_challenges(