- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 27 for AddCert (0.39 sec)
-
src/crypto/x509/cert_pool.go
// lazily parsing/decompressing it as needed. lazyCerts []lazyCert // haveSum maps from sum224(cert.Raw) to true. It's used only // for AddCert duplicate detection, to avoid CertPool.contains // calls in the AddCert path (because the contains method can // call getCert and otherwise negate savings from lazy getCert // funcs). haveSum map[sum224]bool
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 19:41:40 UTC 2023 - 8.9K bytes - Viewed (0) -
src/crypto/tls/example_test.go
opts := x509.VerifyOptions{ DNSName: cs.ServerName, Intermediates: x509.NewCertPool(), } for _, cert := range cs.PeerCertificates[1:] { opts.Intermediates.AddCert(cert) } _, err := cs.PeerCertificates[0].Verify(opts) return err }, } // Server side configuration. _ = &tls.Config{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 27 18:23:49 UTC 2024 - 7.8K bytes - Viewed (0) -
pkg/spiffe/spiffe.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 11.1K bytes - Viewed (0) -
src/crypto/x509/verify_test.go
parent, parentKey, err := generateCert("Root CA", true, nil, nil) if err != nil { t.Fatal(err) } roots.AddCert(parent) for i := 1; i < 100; i++ { parent, parentKey, err = generateCert("Intermediate CA", true, parent, parentKey) if err != nil { t.Fatal(err) } intermediates.AddCert(parent) } leaf, _, err := generateCert("Leaf", false, parent, parentKey) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 110.2K bytes - Viewed (0) -
pilot/pkg/trustbundle/trustbundle_test.go
w.WriteHeader(http.StatusOK) _, _ = w.Write([]byte(validSpiffeX509Bundle)) }) server1 := httptest.NewTLSServer(validHandler) caCertPool.AddCert(server1.Certificate()) defer server1.Close() server2 := httptest.NewTLSServer(validHandler) caCertPool.AddCert(server2.Certificate()) defer server2.Close() tb := NewTrustBundle(caCertPool, mesh.NewFixedWatcher(&meshconfig.MeshConfig{TrustDomain: "cluster.local"}))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 13.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/request/x509/x509.go
} if optsCopy.Intermediates == nil && len(req.TLS.PeerCertificates) > 1 { optsCopy.Intermediates = x509.NewCertPool() for _, intermediate := range req.TLS.PeerCertificates[1:] { optsCopy.Intermediates.AddCert(intermediate) } } /* kubernetes mutual (2-way) x509 between client and apiserver: 1. apiserver sending its apiserver certificate along with its publickey to client
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 18 01:31:22 UTC 2023 - 10.3K bytes - Viewed (0) -
src/crypto/x509/hybrid_pool_test.go
} opts := x509.VerifyOptions{Roots: pool} _, err = googChain[0].Verify(opts) if err != nil { t.Fatalf("verification failed for google.com chain (system only pool): %s", err) } pool.AddCert(root) _, err = googChain[0].Verify(opts) if err != nil { t.Fatalf("verification failed for google.com chain (hybrid pool): %s", err) } certTmpl := &x509.Certificate{ SerialNumber: big.NewInt(1),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:48:11 UTC 2024 - 3.7K bytes - Viewed (0) -
security/pkg/k8s/chiron/utils.go
return nil, nil, fmt.Errorf("failed to append CA certificate") } intermediates := x509.NewCertPool() if len(certsParsed) > 1 { for _, cert := range certsParsed[1:] { intermediates.AddCert(cert) } } _, err = certsParsed[0].Verify(x509.VerifyOptions{ Roots: roots, Intermediates: intermediates, }) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Apr 05 18:11:22 UTC 2024 - 9.2K bytes - Viewed (0) -
src/crypto/tls/boring_test.go
t.Errorf("%s: BAD accept", desc) } } } // Run simple basic test with known answers before proceeding to // exhaustive test with computed answers. r1pool := x509.NewCertPool() r1pool.AddCert(R1.cert) testServerCert(t, "basic", r1pool, L2_I.key, [][]byte{L2_I.der, I_R1.der}, true) testClientCert(t, "basic (client cert)", r1pool, L2_I.key, [][]byte{L2_I.der, I_R1.der}, true) fipstls.Force()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:45:37 UTC 2024 - 19.4K bytes - Viewed (0) -
cmd/kubeadm/app/phases/certs/certlist_test.go
t.Fatal(err) } caCert, _ := parseCertAndKey(filepath.Join(dir, "test-ca"), t) daughterCert, _ := parseCertAndKey(filepath.Join(dir, "test-daughter"), t) pool := x509.NewCertPool() pool.AddCert(caCert) _, err = daughterCert.Verify(x509.VerifyOptions{ DNSName: "test-domain.space", Roots: pool, KeyUsages: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth}, }) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 8.8K bytes - Viewed (0)