Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for NameToCertificate (0.28 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/tlsconfig.go

    	if err != nil {
    		return tlsConfigCopy, nil
    	}
    
    	ipCert, ok := tlsConfigCopy.NameToCertificate[host]
    	if !ok {
    		return tlsConfigCopy, nil
    	}
    	tlsConfigCopy.Certificates = []tls.Certificate{*ipCert}
    	tlsConfigCopy.NameToCertificate = nil
    
    	return tlsConfigCopy, nil
    }
    
    // newTLSContent determines the next set of content for overriding the baseTLSConfig.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  2. src/crypto/tls/common.go

    	NameToCertificate map[string]*Certificate
    
    	// GetCertificate returns a Certificate based on the given
    	// ClientHelloInfo. It will only be called if the client supplies SNI
    	// information or if Certificates is empty.
    	//
    	// If GetCertificate is nil or returns nil, then the certificate is
    	// retrieved from NameToCertificate. If NameToCertificate is nil, the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 59.1K bytes
    - Viewed (0)
  3. src/crypto/tls/handshake_server_test.go

    // tests the dynamic GetCertificate method
    func TestHandshakeServerSNIGetCertificate(t *testing.T) {
    	config := testConfig.Clone()
    
    	// Replace the NameToCertificate map with a GetCertificate function
    	nameToCert := config.NameToCertificate
    	config.NameToCertificate = nil
    	config.GetCertificate = func(clientHello *ClientHelloInfo) (*Certificate, error) {
    		cert := nameToCert[clientHello.ServerName]
    		return cert, nil
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  4. src/crypto/tls/tls_test.go

    			// TestCloneFuncFields to ensure that the func field is
    			// cloned.
    		case "Certificates":
    			f.Set(reflect.ValueOf([]Certificate{
    				{Certificate: [][]byte{{'b'}}},
    			}))
    		case "NameToCertificate":
    			f.Set(reflect.ValueOf(map[string]*Certificate{"a": nil}))
    		case "RootCAs", "ClientCAs":
    			f.Set(reflect.ValueOf(x509.NewCertPool()))
    		case "ClientSessionCache":
    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. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Config.GetConfigForClient", Field, 8},
    		{"Config.InsecureSkipVerify", Field, 0},
    		{"Config.KeyLogWriter", Field, 8},
    		{"Config.MaxVersion", Field, 2},
    		{"Config.MinVersion", Field, 2},
    		{"Config.NameToCertificate", Field, 0},
    		{"Config.NextProtos", Field, 0},
    		{"Config.PreferServerCipherSuites", Field, 1},
    		{"Config.Rand", Field, 0},
    		{"Config.Renegotiation", Field, 7},
    		{"Config.RootCAs", Field, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top