Check server certificates against a local UPKI revocation cache
Go's TLS client doesn't check whether server certificates have been revoked, especially on Linux and the BSDs, where Go verifies certificates itself. This proposal adds offline revocation checking to crypto/tls. It uses a local cache in the C2SP upki-revocation format, based on Mozilla's CRLite data as used in Firefox. A system service such as the rustls upki tool fills and updates the cache. Go only reads it: it does not download data or link to the tool.
The check is on by default for modules targeting Go 1.28 or later. It runs after normal chain and hostname verification, before VerifyPeerCertificate and VerifyConnection. It can only reject connections, never allow ones that would otherwise fail. Go looks for the cache in standard user and system locations, such as /var/cache/upki/revocation, and reopens the index on each check so updates apply without a restart.
A new Config.UPKIRevocation field lets clients disable the check, point it at a specific cache, or reject inconclusive results:
cfg := &tls.Config{
UPKIRevocation: tls.UPKIRevocationConfig{
Directory: "/var/cache/upki/revocation",
MissingData: tls.UPKIRevocationPolicyReject,
NotCovered: tls.UPKIRevocationPolicyReject,
MissingSCTs: tls.UPKIRevocationPolicyAllow, // allow private PKI certificates
},
}
- Proposal
- #82402 by cpu
- Status
- Likely accept on Nov 18, 2026
- Impact
- low
- Area
- crypto/tls