Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 56 for certRoot (1.05 sec)

  1. pkg/spiffe/spiffe.go

    type PeerCertVerifier struct {
    	generalCertPool *x509.CertPool
    	certPools       map[string]*x509.CertPool
    }
    
    // NewPeerCertVerifier returns a new PeerCertVerifier.
    func NewPeerCertVerifier() *PeerCertVerifier {
    	return &PeerCertVerifier{
    		generalCertPool: x509.NewCertPool(),
    		certPools:       make(map[string]*x509.CertPool),
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  2. src/crypto/x509/root_darwin.go

    	data, err := macOS.SecCertificateCopyData(cert)
    	if err != nil {
    		return nil, err
    	}
    	return ParseCertificate(data)
    }
    
    func loadSystemRoots() (*CertPool, error) {
    	return &CertPool{systemPool: true}, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 01 00:36:38 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  3. src/crypto/x509/root_windows.go

    	"errors"
    	"strings"
    	"syscall"
    	"unsafe"
    )
    
    func loadSystemRoots() (*CertPool, error) {
    	return &CertPool{systemPool: true}, nil
    }
    
    // Creates a new *syscall.CertContext representing the leaf certificate in an in-memory
    // certificate store containing itself and all of the intermediate certificates specified
    // in the opts.Intermediates CertPool.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:41:40 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  4. istioctl/pkg/kubeinject/kubeinject.go

    	var address string
    	if cc.URL != nil {
    		address = *cc.URL
    	}
    	var certPool *x509.CertPool
    	if len(cc.CABundle) > 0 {
    		certPool = x509.NewCertPool()
    		certPool.AppendCertsFromPEM(cc.CABundle)
    	} else {
    		var err error
    		certPool, err = x509.SystemCertPool()
    		if err != nil {
    			return nil, err
    		}
    	}
    	tlsClientConfig := &tls.Config{RootCAs: certPool, MinVersion: tls.VersionTLS12}
    	client := http.Client{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 29 02:29:02 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/egressselector/egress_selector.go

    	if err != nil {
    		return nil, fmt.Errorf("failed to read key pair %s & %s, got %v", clientCert, clientKey, err)
    	}
    	certPool := x509.NewCertPool()
    	if caCert != "" {
    		certBytes, err := os.ReadFile(caCert)
    		if err != nil {
    			return nil, fmt.Errorf("failed to read cert file %s, got %v", caCert, err)
    		}
    		ok := certPool.AppendCertsFromPEM(certBytes)
    		if !ok {
    			return nil, fmt.Errorf("failed to append CA cert to the cert pool")
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 15:48:39 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  6. pilot/pkg/trustbundle/trustbundle.go

    	endpointUpdateChan chan struct{}
    	remoteCaCertPool   *x509.CertPool
    	meshConfig         mesh.Watcher
    }
    
    var (
    	trustBundleLog = log.RegisterScope("trustBundle", "Workload mTLS trust bundle logs")
    	remoteTimeout  = 10 * time.Second
    )
    
    // NewTrustBundle returns a new trustbundle
    func NewTrustBundle(remoteCaCertPool *x509.CertPool, meshConfig mesh.Watcher) *TrustBundle {
    	var err error
    	tb := &TrustBundle{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  7. src/crypto/x509/root_test.go

    	systemRootsPool()
    	if systemRoots != nil {
    		originalSystemRoots := *systemRoots
    		defer func() { systemRoots = &originalSystemRoots }()
    	}
    
    	tests := []struct {
    		name            string
    		systemRoots     *CertPool
    		systemPool      bool
    		poolContent     []*Certificate
    		forceFallback   bool
    		returnsFallback bool
    	}{
    		{
    			name:            "nil systemRoots",
    			returnsFallback: true,
    		},
    		{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 23:57:10 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  8. src/crypto/x509/root_unix.go

    	certDirEnv = "SSL_CERT_DIR"
    )
    
    func (c *Certificate) systemVerify(opts *VerifyOptions) (chains [][]*Certificate, err error) {
    	return nil, nil
    }
    
    func loadSystemRoots() (*CertPool, error) {
    	roots := NewCertPool()
    
    	files := certFiles
    	if f := os.Getenv(certFileEnv); f != "" {
    		files = []string{f}
    	}
    
    	var firstErr error
    	for _, file := range files {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 20:54:07 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  9. api/go1.19.txt

    pkg crypto/x509, func ParseRevocationList([]uint8) (*RevocationList, error) #50674
    pkg crypto/x509, method (*CertPool) Clone() *CertPool #35044
    pkg crypto/x509, method (*CertPool) Equal(*CertPool) bool #46057
    pkg crypto/x509, method (*RevocationList) CheckSignatureFrom(*Certificate) error #50674
    pkg crypto/x509, type RevocationList struct, AuthorityKeyId []uint8 #50674
    pkg crypto/x509, type RevocationList struct, Extensions []pkix.Extension #50674
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 02 16:29:41 UTC 2022
    - 17.9K bytes
    - Viewed (0)
  10. src/net/http/httptest/server.go

    	if err != nil {
    		panic(fmt.Sprintf("httptest: NewTLSServer: %v", err))
    	}
    	certpool := x509.NewCertPool()
    	certpool.AddCert(s.certificate)
    	s.client.Transport = &http.Transport{
    		TLSClientConfig: &tls.Config{
    			RootCAs: certpool,
    		},
    		ForceAttemptHTTP2: s.EnableHTTP2,
    	}
    	s.Listener = tls.NewListener(s.Listener, s.TLS)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:26:10 UTC 2024
    - 10.7K bytes
    - Viewed (0)
Back to top