upki (github.com/rustls/upki, shipping in Ubuntu 26.10+) keeps a local
CRLite revocation cache that "upki fetch" refreshes on a timer. Add an
omittable "upki" feature that, after tlsdial's x509 verification
succeeds, checks the leaf against that cache if one is present and
rejects it if revoked. Missing caches, uncovered certs, and cache read
errors all fail open.
The cache is read with github.com/cpu/go-upki, the prototype for the
built-in crypto/tls support proposed in golang/go#82402. That built-in
check wouldn't cover us even once it ships, because crypto/tls skips it
when InsecureSkipVerify is set, and tlsdial always sets that so it can
do its own verification in VerifyConnection.
Updates #22680
Signed-off-by: Brad Fitzpatrick <[email protected]>
Change-Id: Idfa75794cbba9c90039355ffaeb21b5d5824a5fe