mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 00:35:50 +02:00
Fix "reg vs new-reg" encoding problem.
This commit is contained in:
@@ -88,7 +88,7 @@ def register(config, account_storage, tos_cb=None):
|
||||
backend=default_backend())))
|
||||
acme = _acme_from_config_key(config, key)
|
||||
# TODO: add phone?
|
||||
regr = acme.register(messages.Registration.from_data(email=config.email))
|
||||
regr = acme.register(messages.NewRegistration.from_data(email=config.email))
|
||||
|
||||
if regr.terms_of_service is not None:
|
||||
if tos_cb is not None and not tos_cb(regr):
|
||||
|
||||
Reference in New Issue
Block a user