From b36693821e3443fc12330a12e2950b7405d88dff Mon Sep 17 00:00:00 2001 From: Shiloh Heurich Date: Mon, 18 Mar 2024 18:12:48 -0400 Subject: [PATCH] fix: use scope in dns-account-01 challenge --- test/chisel2.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/chisel2.py b/test/chisel2.py index eb2288f5..c46ad60b 100644 --- a/test/chisel2.py +++ b/test/chisel2.py @@ -149,8 +149,12 @@ def cleanup(): def do_dns_account_challenges(client, authzs): cleanup_hosts = [] for a in authzs: + scope = "host" + if (a.body.wildcard): + scope = "wildcard" + c = get_chall(a, challenges.DNSACCOUNT01) - name, value = (c.validation_domain_name(client.net.account.uri, a.body.identifier.value), + name, value = (c.validation_domain_name(client.net.account.uri, scope, a.body.identifier.value), c.validation(client.net.key)) cleanup_hosts.append(name) requests.post(SET_TXT, json={