Commit 66424408 authored by Adrien Dorsaz's avatar Adrien Dorsaz
Browse files

account_rollover raises error if unkown key should be used to send request to ACME server

parent 2c1e2447
Pipeline #312 failed with stages
in 3 minutes and 8 seconds
......@@ -63,6 +63,8 @@ def account_rollover(old_accountkeypath, new_accountkeypath, acme_directory, log
protected = copy.deepcopy(private_acme_new_signature)
elif keypath == old_accountkeypath:
protected = copy.deepcopy(private_acme_old_signature)
else:
raise RuntimeError("Unknown keypath to sign request")
if is_inner or url == acme_config["newAccount"]:
if "kid" in protected:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment