- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for AddMappings (0.08 sec)
-
pkg/spiffe/spiffe.go
return fmt.Errorf("parse certificate from rootPEM got error: %v", err) } v.AddMapping(trustDomain, rootCAs) return nil } // AddMappings merges a trust domain to certs map to the certPools map. func (v *PeerCertVerifier) AddMappings(certMap map[string][]*x509.Certificate) { for trustDomain, certs := range certMap { v.AddMapping(trustDomain, certs) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 11.1K bytes - Viewed (0) -
pkg/spiffe/spiffe_test.go
t.Fatalf("Failed to parse certificate: " + err.Error()) } certMap[trustDomain] = append(certMap[trustDomain], rootCert) } } verifier := NewPeerCertVerifier() verifier.AddMappings(certMap) if verifier == nil { t.Fatalf("Failed to create peer cert verifier.") } client := &http.Client{ Timeout: time.Second, Transport: &http.Transport{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 18.1K bytes - Viewed (0)