This commit is contained in:
Fang-Pen Lin
2025-12-01 18:02:39 -08:00
parent 64633b0abc
commit a2774bd18e

View File

@@ -114,6 +114,10 @@ export const pkiAcmeChallengeServiceFactory = ({
await acmeChallengeDAL.markAsValidCascadeById(challengeId);
} catch (exp) {
if (retryCount >= 2) {
logger.error(
exp,
`Last attempt to validate ACME challenge response failed, marking ${challengeId} challenge as invalid`
);
// This is the last attempt to validate the challenge response, if it fails, we mark the challenge as invalid
await acmeChallengeDAL.markAsInvalidCascadeById(challengeId);
}