mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 10:28:22 +00:00
Tell server challenge is ready
This commit is contained in:
@@ -18,4 +18,5 @@ Feature: Challenge
|
|||||||
Then I submit the certificate signing request PEM csr_pem certificate order to the ACME server as order
|
Then I submit the certificate signing request PEM csr_pem certificate order to the ACME server as order
|
||||||
Then I select challenge with type http-01 for domain localhost from order at order as challenge
|
Then I select challenge with type http-01 for domain localhost from order at order as challenge
|
||||||
Then I serve challenge response for challenge at localhost
|
Then I serve challenge response for challenge at localhost
|
||||||
|
Then I tell ACME server that challenge is ready to be verified
|
||||||
|
|
||||||
|
|||||||
@@ -364,3 +364,12 @@ def step_impl(context: Context, var_path: str, hostname: str):
|
|||||||
web_server.daemon = True
|
web_server.daemon = True
|
||||||
web_server.start()
|
web_server.start()
|
||||||
context.web_server = web_server
|
context.web_server = web_server
|
||||||
|
|
||||||
|
|
||||||
|
@then("I tell ACME server that {var_path} is ready to be verified")
|
||||||
|
def step_impl(context: Context, var_path: str):
|
||||||
|
challenge = eval_var(context, var_path, as_json=False)
|
||||||
|
acme_challenge = challenge.chall
|
||||||
|
acme_client = challenge.acme_client
|
||||||
|
response, validation = acme_challenge.response_and_validation(acme_client.net.key)
|
||||||
|
acme_client.answer_challenge(acme_challenge, response)
|
||||||
|
|||||||
Reference in New Issue
Block a user