- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for hasSAN (0.09 sec)
-
staging/src/k8s.io/apiserver/pkg/util/x509metrics/server_cert_deprecations.go
func (c *missingSANChecker) CheckPeerCertificates(peerCertificates []*x509.Certificate) bool { if len(peerCertificates) > 0 { if serverCert := peerCertificates[0]; !hasSAN(serverCert) { return true } } return false } func hasSAN(c *x509.Certificate) bool { sanOID := []int{2, 5, 29, 17} for _, e := range c.Extensions { if e.Id.Equal(sanOID) { return true } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 7.3K bytes - Viewed (0)