Send nonce twice

This commit is contained in:
Fang-Pen Lin
2025-11-12 09:12:03 -08:00
parent 2a4b122348
commit d1dad08005
2 changed files with 43 additions and 1 deletions
+6
View File
@@ -439,6 +439,12 @@ def step_impl(context: Context, var_path: str, jq_query, var_name: str):
context.vars[var_name] = value
@then("I peak and memorize the next nonce as {var_name}")
def step_impl(context: Context, var_name: str):
acme_client = context.acme_client
context.vars[var_name] = json_util.encode_b64jose(list(acme_client.net._nonces)[0])
@then("I memorize {var_path} as {var_name}")
def step_impl(context: Context, var_path: str, var_name: str):
value = eval_var(context, var_path)