Load v3 certificates and composite keys, speak v2 messages over v3 tunnels, and match ca_sha on either CA fingerprint

This commit is contained in:
JackDoan committed 2026-10-14 11:03:04 -05:00
1 parent ab89556c5c
commit 5c5254dc18
6 files changed
+156 -14

No files matched your search

+8
View File
@@ -764,6 +764,14 @@ func (fc *FirewallCA) match(p firewall.Packet, c *cert.CachedCertificate, caPool
return false
}
// A version 3 certificate names its CA by the fingerprint of the CA's v2 form,
// which is matched above. A rule may also use the v3 CA's own fingerprint.
if c.Certificate.Version() == cert.Version3 {
if t, ok := fc.CAShas[s.Fingerprint]; ok && t.match(p, c) {
return true
}
}
return fc.CANames[s.Certificate.Name()].match(p, c)
}