mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 08:09:10 +02:00
Error out when the server requires External Account Binding and the user
has not supplied kid and hmac key.
This commit is contained in:
@@ -192,6 +192,10 @@ def perform_registration(acme, config, tos_cb):
|
||||
:rtype: `acme.messages.RegistrationResource`
|
||||
"""
|
||||
|
||||
if acme.client.directory.meta.external_account_required:
|
||||
if config.eab_kid is None or config.eab_hmac_key is None:
|
||||
raise errors.Error("Server requires external account binding. Please use --eab-kid and --eab-hmac-key.")
|
||||
|
||||
account_public_key = acme.client.net.key.public_key()
|
||||
try:
|
||||
return acme.new_account_and_tos(messages.NewRegistration.from_data(account_public_key=account_public_key,
|
||||
|
||||
Reference in New Issue
Block a user