Skip to content

Validation retry not being honored in v2.3.4.2084 #358

@DC3001-git

Description

@DC3001-git

In the latest version, when running a custom script for a DNS-01 challenge, during validation steps I receive an error message that authorization is invalid... it appears that this is due to validation retry is not occurring.

Previous version output (working):

[myhost.com] Authorizing using dns-01 validation (DnsScript)
Script \UNCPATH\Create-TXT.ps1 starting with parameters create myhost.com _acme-challenge.myhost.com "S4DgbiJJ3Myz8pzMwLNnz9wsCsw9Os2RqpFDtbr6dyg"
Script finished
[myhost.com] Record S4DgbiJJ3Myz8pzMwLNnz9wsCsw9Os2RqpFDtbr6dyg successfully created
[myhost.com] [#.#.#.1] No TXT records found
[myhost.com] [#.#.#.2] No TXT records found
[myhost.com] [#.#.#.3] No TXT records found
[myhost.com] Preliminary validation failed on all nameservers
[myhost.com] Will retry in 30 seconds (retry 1/10)...
[myhost.com] Preliminary validation succeeded

Current version output (failing):

[myhost.com] Authorizing using dns-01 validation (DnsScript)
Script \UNCPATH\Create-TXT.ps1 starting with parameters create myhost.com _acme-challenge.myhost.com ""
Script finished
[myhost.com] Record 7tL8oqq3sLdFowKl1MXaYNa2B_J68RgUt707hKNwijs successfully created
[myhost.com] Authorization result: invalid
[myhost.com] {"type":"urn:ietf:params:acme:error:dns","detail":"DNS problem: NXDOMAIN looking up TXT for _acme-challenge.myhost.com - check that a DNS record exists for this domain","status":400,"instance":null}
Script \\UNCPATH\Delete-TXT.ps1 starting with parameters delete myhost.com _acme-challenge.myhost.com "
"
Script finished
[myhost.com] Record 7tL8oqq3sLdFowKl1MXaYNa2B_J68RgUt707hKNwijs deleted
[myhost.com] Deactivating pending authorization
No certificate generated
Renewal for [Manual] myhost.com failed, will retry on next run
Validation failed
No certificate generated

Expected behavior
Validation retry should occur before failure

Additional Info
While testing, if I add a 20 second pause in my Create-TXT.ps1 script the validation does succeed as it has in the past.

Platform:

  • OS: Windows 2019, English
  • Version: 2.3.4.2084 (release, trimmed, standalone, 64-bit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions