mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 03:32:13 +02:00
Simplify the ACME example client by using an existing method
This commit is contained in:
@@ -28,8 +28,7 @@ acme = client.Client(DIRECTORY_URL, key)
|
|||||||
|
|
||||||
regr = acme.register()
|
regr = acme.register()
|
||||||
logging.info('Auto-accepting TOS: %s', regr.terms_of_service)
|
logging.info('Auto-accepting TOS: %s', regr.terms_of_service)
|
||||||
acme.update_registration(regr.update(
|
acme.agree_to_tos(regr)
|
||||||
body=regr.body.update(agreement=regr.terms_of_service)))
|
|
||||||
logging.debug(regr)
|
logging.debug(regr)
|
||||||
|
|
||||||
authzr = acme.request_challenges(
|
authzr = acme.request_challenges(
|
||||||
|
|||||||
Reference in New Issue
Block a user