Skip to content

Commit

Permalink
fix: use scope in dns-account-01 challenge
Browse files Browse the repository at this point in the history
  • Loading branch information
sheurich committed Mar 18, 2024
1 parent 95895cd commit b366938
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/chisel2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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={
Expand Down

0 comments on commit b366938

Please sign in to comment.