mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-16 21:46:52 +01:00
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:
1 parent
ab89556c5c
commit
5c5254dc18
6 files changed
+156
-14
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user