Closed skirsten closed 2 years ago
Hmm, thanks for reporting this. What is your code that I can use as a basis to reproduce this?
@skirsten Might be solved by #8. Closing unless there's further indication it is still a problem.
Hi, sorry for not providing any help to reproduce this :disappointed:. The code I was using was tightly integrated with my use-case. It wasn't as easy as copy-pasting it and then I completely forgot about it...
I will check later today if #8 solves this problem and if not, provide some code to reproduce.
Yes, I can confirm that #8 solves this problem :) Thanks for the work @N0Cloud
Yay! Glad we got it merged then. Should go out on the next Caddy and CertMagic. Hope it didn't break anything, ha. :sweat_smile:
If
dns-01
)ObtainCertificate
is called with multiple SAN's (e.g."a.example.com", "b.example.com", "c.example.com", "d.example.com"
)c.example.com
),then all certificates up to the one that failed will be presented and cleaned up again. No actual solving is done. This means that if there are 100 SAN's requested and the last one fails, 99 completely useless calls will be done to
Present
andCleanUp
(which in turn do more requests to DNS api's etc.)Here is a example log with replaced domain where the challenge for
c.example.com
fails:After the challenge failed,
a.example.com
andb.example.com
are presented and cleaned up without any attempted solve.