Skip to content

Commit 3545d81

Browse files
OCSP: treat all failures as unsupported (even temporarily)
1 parent 42b4a3f commit 3545d81

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Certify.Shared/Management/CertificateManager.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,8 @@ public static string[] CheckCertChain(X509Certificate2 cert)
212212
}
213213
catch (Exception)
214214
{
215-
log?.Warning("Failed to Check Ocsp Revoked Status {file}", filename);
216-
217-
return Models.Certify.Models.CertificateStatusType.Unknown;
215+
// ocsp details not available, responder not available or unsupported
216+
return Models.Certify.Models.CertificateStatusType.OcspNotSupported;
218217
}
219218
}
220219

0 commit comments

Comments
 (0)