- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for GeneratedCerts (0.17 sec)
-
security/pkg/nodeagent/caclient/providers/mock/mockcaclient.go
} block := &pem.Block{ Type: "CERTIFICATE", Bytes: certBytes, } cert := pem.EncodeToMemory(block) ret := []string{string(cert), string(certChain), string(rootCert)} c.GeneratedCerts = append(c.GeneratedCerts, ret) return ret, nil } func (c *CAClient) GetRootCertBundle() ([]string, error) { if c.mockTrustAnchor { rootCertBytes := c.bundle.GetRootCertPem() return []string{string(rootCertBytes)}, nil
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 16 22:12:28 UTC 2024 - 3K bytes - Viewed (0) -
security/pkg/nodeagent/cache/secretcache_test.go
} if got, want := gotSecret.CertificateChain, []byte(strings.Join(fakeCACli.GeneratedCerts[0], "")); !bytes.Equal(got, want) { t.Errorf("Got unexpected certificate chain #1. Got: %v, want: %v", string(got), string(want)) } // Root cert is the last element in the generated certs. want = []byte(fakeCACli.GeneratedCerts[0][2]) if got := sc.cache.GetRoot(); !bytes.Equal(got, want) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 16 22:12:28 UTC 2024 - 23.9K bytes - Viewed (0)