More efficient challenge waiting

This commit is contained in:
Fang-Pen Lin
2025-12-01 18:51:48 -08:00
parent a2774bd18e
commit 27d027519b
2 changed files with 20 additions and 11 deletions
@@ -111,6 +111,7 @@ export const pkiAcmeChallengeServiceFactory = ({
if (challengeResponseBody.trimEnd() !== expectedChallengeResponseBody) {
throw new AcmeIncorrectResponseError({ message: "ACME challenge response is not correct" });
}
logger.info({ challengeId }, "ACME challenge response is correct, marking challenge as valid");
await acmeChallengeDAL.markAsValidCascadeById(challengeId);
} catch (exp) {
if (retryCount >= 2) {