Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for certPools (0.26 sec)

  1. src/crypto/x509/verify_test.go

    	}
    	c, err := ParseCertificate(d)
    	if err != nil {
    		t.Fatalf("failed to parse test cert: %s", err)
    	}
    	return c
    }
    
    func buildTrustGraph(t *testing.T, d trustGraphDescription) (*CertPool, *CertPool, *Certificate) {
    	t.Helper()
    
    	certs := map[string]*Certificate{}
    	keys := map[string]crypto.Signer{}
    	rootPool := NewCertPool()
    	for _, r := range d.Roots {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 110.2K bytes
    - Viewed (0)
  2. src/crypto/x509/x509_test.go

    		t.Fatal("CreateCertificate didn't fail when SignatureAlgorithm = MD5WithRSA")
    	}
    }
    
    func (s *CertPool) mustCert(t *testing.T, n int) *Certificate {
    	c, err := s.lazyCerts[n].getCert()
    	if err != nil {
    		t.Fatalf("failed to load cert %d: %v", n, err)
    	}
    	return c
    }
    
    func allCerts(t *testing.T, p *CertPool) []*Certificate {
    	all := make([]*Certificate, p.len())
    	for i := range all {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 163.4K bytes
    - Viewed (0)
  3. src/net/http/transport_test.go

    			logf("%s", p)
    			return len(p), nil
    		}), "", 0)
    	}).ts
    
    	certpool := x509.NewCertPool()
    	certpool.AddCert(ts.Certificate())
    
    	c := &Client{Transport: &Transport{
    		TLSClientConfig: &tls.Config{
    			ServerName: "dns-is-faked.golang",
    			RootCAs:    certpool,
    		},
    	}}
    
    	trace := &httptrace.ClientTrace{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
Back to top