The revocation check of certificates is switched off
What it finds
A revoked certificate was withdrawn by its issuer, often because its key was stolen. X509RevocationMode.NoCheck and CheckCertificateRevocationList = false accept such certificates as valid.
From the rule's source, revocation_check_disabled.rs.
using System.Security.Cryptography.X509Certificates; class Chains{ void Build(X509Chain chain) { chain.ChainPolicy.RevocationMode = X509RevocationMode.NoCheck;tx0 reports: certificates are not checked for revocation chain.ChainPolicy.RevocationMode = X509RevocationMode.Online; }} Turn it on, off or suppress it
The rule runs from the recommended tier up. To turn it on in a lower tier, give it a level in tx0.toml:
[rules]
"tx0/csharp:revocation-check-disabled" = "warning"To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:
// tx0: ignore[tx0/csharp:revocation-check-disabled] reason="..."tx0 explain tx0/csharp:revocation-check-disabled shows the same in the terminal. Found a false positive? Report it.