Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for rawCerts (0.14 sec)

  1. pkg/spiffe/spiffe.go

    func (v *PeerCertVerifier) VerifyPeerCert(rawCerts [][]byte, _ [][]*x509.Certificate) error {
    	if len(rawCerts) == 0 {
    		// Peer doesn't present a certificate. Just skip. Other authn methods may be used.
    		return nil
    	}
    	var peerCert *x509.Certificate
    	intCertPool := x509.NewCertPool()
    	for id, rawCert := range rawCerts {
    		cert, err := x509.ParseCertificate(rawCert)
    		if err != nil {
    			return err
    		}
    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/tls/handshake_client_test.go

    	sentinelErr := errors.New("TestVerifyPeerCertificate")
    
    	verifyPeerCertificateCallback := func(called *bool, rawCerts [][]byte, validatedChains [][]*x509.Certificate) error {
    		if l := len(rawCerts); l != 1 {
    			return fmt.Errorf("got len(rawCerts) = %d, wanted 1", l)
    		}
    		if len(validatedChains) == 0 {
    			return errors.New("got len(validatedChains) = 0, wanted non-zero")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  3. pkg/istio-agent/agent_test.go

    		Certificates: []tls.Certificate{cert},
    		ClientAuth:   tls.VerifyClientCertIfGiven,
    		ClientCAs:    peerCertVerifier.GetGeneralCertPool(),
    		VerifyPeerCertificate: func(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error {
    			err := peerCertVerifier.VerifyPeerCert(rawCerts, verifiedChains)
    			if err != nil {
    				log.Infof("Could not verify certificate: %v", err)
    			}
    			return err
    		},
    		MinVersion: tls.VersionTLS12,
    	}))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  4. src/crypto/tls/tls_test.go

    			}
    			clientConfig.VerifyPeerCertificate = func(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error {
    				clientVerifyPeerCertificates = true
    				return nil
    			}
    			serverConfig.VerifyConnection = func(cs ConnectionState) error {
    				serverVerifyConnection = true
    				return nil
    			}
    			serverConfig.VerifyPeerCertificate = func(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
  5. pilot/pkg/bootstrap/server.go

    		ClientAuth:     tls.VerifyClientCertIfGiven,
    		ClientCAs:      peerCertVerifier.GetGeneralCertPool(),
    		VerifyPeerCertificate: func(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error {
    			err := peerCertVerifier.VerifyPeerCert(rawCerts, verifiedChains)
    			if err != nil {
    				log.Infof("Could not verify certificate: %v", err)
    			}
    			return err
    		},
    		MinVersion:   tls.VersionTLS12,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 46.3K bytes
    - Viewed (0)
  6. src/crypto/tls/common.go

    	// rawCerts may be empty on the server if ClientAuth is RequestClientCert or
    	// VerifyClientCertIfGiven.
    	//
    	// This callback is not invoked on resumed connections, as certificates are
    	// not re-verified on resumption.
    	//
    	// verifiedChains and its contents should not be modified.
    	VerifyPeerCertificate func(rawCerts [][]byte, verifiedChains [][]*x509.Certificate) error
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 59.1K bytes
    - Viewed (0)
  7. pkg/test/csrctrl/authority/authority.go

    // CertificateAuthority implements a certificate authority that supports policy
    // based signing. It's used by the signing controller.
    type CertificateAuthority struct {
    	// RawCert is an optional field to determine if signing cert/key pairs have changed
    	RawCert []byte
    	// RawKey is an optional field to determine if signing cert/key pairs have changed
    	RawKey []byte
    
    	Certificate *x509.Certificate
    	PrivateKey  crypto.Signer
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 28 18:22:37 UTC 2021
    - 3K bytes
    - Viewed (0)
  8. pkg/controller/certificates/authority/authority.go

    // CertificateAuthority implements a certificate authority that supports policy
    // based signing. It's used by the signing controller.
    type CertificateAuthority struct {
    	// RawCert is an optional field to determine if signing cert/key pairs have changed
    	RawCert []byte
    	// RawKey is an optional field to determine if signing cert/key pairs have changed
    	RawKey []byte
    
    	Certificate *x509.Certificate
    	PrivateKey  crypto.Signer
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 23 19:36:11 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  9. pkg/controller/certificates/signer/ca_provider.go

    	}
    	priv, ok := key.(crypto.Signer)
    	if !ok {
    		return fmt.Errorf("error reading CA key file %q: key did not implement crypto.Signer", p.caLoader.Name())
    	}
    
    	ca := &authority.CertificateAuthority{
    		RawCert: certPEM,
    		RawKey:  keyPEM,
    
    		Certificate: certs[0],
    		PrivateKey:  priv,
    	}
    	p.caValue.Store(ca)
    
    	return nil
    }
    
    // currentCA provides the current value of the CA.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 16 18:33:22 UTC 2021
    - 2.8K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modget/query.go

    func newQuery(raw string) (*query, error) {
    	pattern, rawVers, found := strings.Cut(raw, "@")
    	if found && (strings.Contains(rawVers, "@") || rawVers == "") {
    		return nil, fmt.Errorf("invalid module version syntax %q", raw)
    	}
    
    	// If no version suffix is specified, assume @upgrade.
    	// If -u=patch was specified, assume @patch instead.
    	version := rawVers
    	if version == "" {
    		if getU.version == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 27 15:48:25 UTC 2023
    - 11.2K bytes
    - Viewed (0)
Back to top