Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for CertificateRequestInfo (0.42 sec)

  1. pkg/test/echo/server/forwarder/config.go

    	// Http proxy used for connection
    	Proxy string
    
    	// Filled in values.
    	scheme                  scheme.Instance
    	tlsConfig               *tls.Config
    	getClientCertificate    func(info *tls.CertificateRequestInfo) (*tls.Certificate, error)
    	checkRedirect           func(req *http.Request, via []*http.Request) error
    	proxyURL                func(*http.Request) (*url.URL, error)
    	timeout                 time.Duration
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Oct 08 09:39:20 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  2. pilot/pkg/grpc/tls.go

    func getTLSDialOption(opts *TLSOptions) (grpc.DialOption, error) {
    	rootCert, err := getRootCertificate(opts.RootCert)
    	if err != nil {
    		return nil, err
    	}
    	config := tls.Config{
    		GetClientCertificate: func(*tls.CertificateRequestInfo) (*tls.Certificate, error) {
    			var certificate tls.Certificate
    			key, cert := opts.Key, opts.Cert
    			if key != "" && cert != "" {
    				isExpired, err := util.IsCertExpired(opts.Cert)
    				if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 22:11:02 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. internal/config/etcd/etcd.go

    		etcdClientCertKey := env.Get(EnvEtcdClientCertKey, kvs.Get(ClientCertKey))
    		if etcdClientCertFile != "" && etcdClientCertKey != "" {
    			cfg.TLS.GetClientCertificate = func(unused *tls.CertificateRequestInfo) (*tls.Certificate, error) {
    				cert, err := tls.LoadX509KeyPair(etcdClientCertFile, etcdClientCertKey)
    				return &cert, err
    			}
    		}
    	}
    	return cfg, nil
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. src/crypto/tls/handshake_client.go

    		}
    	}
    
    	return nil
    }
    
    // certificateRequestInfoFromMsg generates a CertificateRequestInfo from a TLS
    // <= 1.2 CertificateRequest, making an effort to fill in missing information.
    func certificateRequestInfoFromMsg(ctx context.Context, vers uint16, certReq *certificateRequestMsg) *CertificateRequestInfo {
    	cri := &CertificateRequestInfo{
    		AcceptableCAs: certReq.certificateAuthorities,
    		Version:       vers,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 38.6K bytes
    - Viewed (0)
  5. internal/kms/config.go

    			if err != nil {
    				return nil, err
    			}
    
    			cert, err := kes.GenerateCertificate(key)
    			if err != nil {
    				return nil, err
    			}
    			conf.GetClientCertificate = func(*tls.CertificateRequestInfo) (*tls.Certificate, error) { return &cert, nil }
    		} else {
    			loadX509KeyPair := func(certFile, keyFile string) (tls.Certificate, error) {
    				// Manually load the certificate and private key into memory.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 12 14:31:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  6. src/crypto/tls/common.go

    func (c *ClientHelloInfo) Context() context.Context {
    	return c.ctx
    }
    
    // CertificateRequestInfo contains information from a server's
    // CertificateRequest message, which is used to demand a certificate and proof
    // of control from a client.
    type CertificateRequestInfo struct {
    	// AcceptableCAs contains zero or more, DER-encoded, X.501
    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. src/crypto/tls/handshake_client_tls13.go

    		if _, err := hs.c.writeHandshakeRecord(&certificateMsgTLS13{}, hs.transcript); err != nil {
    			return err
    		}
    		return nil
    	}
    
    	cert, err := c.getClientCertificate(&CertificateRequestInfo{
    		AcceptableCAs:    hs.certReq.certificateAuthorities,
    		SignatureSchemes: hs.certReq.supportedSignatureAlgorithms,
    		Version:          c.vers,
    		ctx:              hs.ctx,
    	})
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  8. src/crypto/tls/handshake_client_test.go

    			clientConfig.GetClientCertificate = func(cri *CertificateRequestInfo) (*Certificate, error) {
    				return nil, errors.New("GetClientCertificate")
    			}
    		},
    		"GetClientCertificate",
    		func(t *testing.T, testNum int, cs *ConnectionState) {
    		},
    	},
    	{
    		func(clientConfig, serverConfig *Config) {
    			clientConfig.GetClientCertificate = func(cri *CertificateRequestInfo) (*Certificate, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  9. src/crypto/tls/handshake_server_test.go

    	go func() {
    		defer close(clientErr)
    		defer c.Close()
    		var innerCtx context.Context
    		clientConfig.Certificates = nil
    		clientConfig.GetClientCertificate = func(certificateRequest *CertificateRequestInfo) (*Certificate, error) {
    			if val, ok := certificateRequest.Context().Value(key).(bool); !ok || !val {
    				t.Errorf("GetClientCertificate context was not child of HandshakeContext")
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  10. src/crypto/tls/tls_test.go

    			called |= 1 << 0
    			return time.Time{}
    		},
    		GetCertificate: func(*ClientHelloInfo) (*Certificate, error) {
    			called |= 1 << 1
    			return nil, nil
    		},
    		GetClientCertificate: func(*CertificateRequestInfo) (*Certificate, error) {
    			called |= 1 << 2
    			return nil, nil
    		},
    		GetConfigForClient: func(*ClientHelloInfo) (*Config, error) {
    			called |= 1 << 3
    			return nil, nil
    		},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
Back to top