-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Welcome
- Yes, I've searched for similar issues on GitHub and didn't find any.
How do you use lego?
Library
Effective version of lego
latest
Detailed Description
Problem
When requesting both a base domain and wildcard domain simultaneously (e.g., example.com and *.example.com), some CAs (like LiteSSL) may return the same challenge token for both authorizations.
Since both authorizations have the same Identifier.Value (example.com) and the same Token, they would require setting identical TXT records at _acme-challenge.example.com.
This causes issues because:
- Many DNS providers fail when trying to create a duplicate TXT record
- Or the second
Present()call overwrites the first one
Expected Behavior
The solver should detect duplicate challenges (same Identifier.Value + Token) and skip redundant PreSolve and CleanUp calls.
Proposed Solution
Add deduplication logic in challenge/resolver/prober.go to track presented challenges and skip duplicates in both parallelSolve and sequentialSolve functions.
I have a working implementation ready to submit as a PR once this issue is approved.