Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 81 for ServerName (0.4 sec)

  1. pilot/pkg/grpc/tls.go

    	}
    
    	if host, _, err := net.SplitHostPort(opts.ServerAddress); err == nil {
    		config.ServerName = host
    	}
    	// For debugging on localhost (with port forward)
    	if strings.Contains(config.ServerName, "localhost") {
    		config.ServerName = "istiod.istio-system.svc"
    	}
    	if opts.SAN != "" {
    		config.ServerName = opts.SAN
    	}
    	// Compliance for all gRPC clients (e.g. Citadel)..
    	sec_model.EnforceGoCompliance(&config)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 22:11:02 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/proxy/dial_test.go

    		},
    		"secure with mismatched server": {
    			TLSConfig:   &tls.Config{InsecureSkipVerify: false, RootCAs: roots, ServerName: "bogus.com"},
    			ExpectError: "not bogus.com",
    		},
    		"secure with matched server": {
    			TLSConfig: &tls.Config{InsecureSkipVerify: false, RootCAs: roots, ServerName: "example.com"},
    		},
    
    		"insecure, custom dial": {
    			TLSConfig: &tls.Config{InsecureSkipVerify: true},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/options/serving_test.go

    			}
    
    			<-startedCh
    
    			// try to dial
    			addr := fmt.Sprintf("localhost:%d", secureOptions.BindPort)
    			t.Logf("Dialing %s as %q", addr, test.ServerName)
    			conn, err := tls.Dial("tcp", addr, &tls.Config{
    				RootCAs:    roots,
    				ServerName: test.ServerName, // used for SNI in the client HELLO packet
    			})
    			if err != nil {
    				t.Fatalf("failed to connect: %v", err)
    			}
    			defer conn.Close()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 15:52:39 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/proxy/dial.go

    				// tls.Handshake() requires ServerName or InsecureSkipVerify
    				tlsConfig = &tls.Config{
    					InsecureSkipVerify: true,
    				}
    			} else if len(tlsConfig.ServerName) == 0 && !tlsConfig.InsecureSkipVerify {
    				// tls.HandshakeContext() requires ServerName or InsecureSkipVerify
    				// infer the ServerName from the hostname we're connecting to.
    				inferredHost := dialAddr
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/GroovyInteroperabilityIntegrationTest.kt

            withFile(
                "groovy.gradle",
                """
                class MyExtension {
                    String server = 'default'
    
                    def configureServerName(serverName) {
                        this.server = serverName
                    }
                }
    
                class MyPlugin implements Plugin<Project> {
                    void apply(project) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/util/webhook/client.go

    		cfg.NextProtos = []string{"http/1.1"}
    
    		serverName := cc.Service.Name + "." + cc.Service.Namespace + ".svc"
    
    		host := net.JoinHostPort(serverName, strconv.Itoa(int(port)))
    		cfg.Host = "https://" + host
    		cfg.APIPath = cc.Service.Path
    		// Set the server name if not already set
    		if len(cfg.TLSClientConfig.ServerName) == 0 {
    			cfg.TLSClientConfig.ServerName = serverName
    		}
    
    		delegateDialer := cfg.Dial
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 04 09:09:10 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  7. src/crypto/tls/handshake_client.go

    func (c *Conn) makeClientHello() (*clientHelloMsg, *keySharePrivateKeys, *echContext, error) {
    	config := c.config
    	if len(config.ServerName) == 0 && !config.InsecureSkipVerify {
    		return nil, nil, nil, errors.New("tls: either ServerName or InsecureSkipVerify must be specified in the tls.Config")
    	}
    
    	nextProtosLength := 0
    	for _, proto := range config.NextProtos {
    		if l := len(proto); l == 0 || l > 255 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 38.6K bytes
    - Viewed (0)
  8. src/crypto/tls/quic_test.go

    	}
    }
    
    func TestQUICSessionResumption(t *testing.T) {
    	clientConfig := testConfig.Clone()
    	clientConfig.MinVersion = VersionTLS13
    	clientConfig.ClientSessionCache = NewLRUClientSessionCache(1)
    	clientConfig.ServerName = "example.go.dev"
    
    	serverConfig := testConfig.Clone()
    	serverConfig.MinVersion = VersionTLS13
    
    	cli := newTestQUICClient(t, clientConfig)
    	cli.conn.SetTransportParameters(nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:23:54 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  9. src/internal/syscall/windows/zsyscall_windows.go

    	}
    	return
    }
    
    func NetShareAdd(serverName *uint16, level uint32, buf *byte, parmErr *uint16) (neterr error) {
    	r0, _, _ := syscall.Syscall6(procNetShareAdd.Addr(), 4, uintptr(unsafe.Pointer(serverName)), uintptr(level), uintptr(unsafe.Pointer(buf)), uintptr(unsafe.Pointer(parmErr)), 0, 0)
    	if r0 != 0 {
    		neterr = syscall.Errno(r0)
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  10. src/crypto/tls/tls_test.go

    			}
    			// NegotiatedProtocolIsMutual on the server side is unspecified.
    
    			if ss.ServerName != serverName {
    				t.Errorf("Got server name %q, expected %q", ss.ServerName, serverName)
    			}
    			if cs.ServerName != serverName {
    				t.Errorf("Got server name on client connection %q, expected %q", cs.ServerName, serverName)
    			}
    
    			if len(ss.PeerCertificates) != 1 || len(cs.PeerCertificates) != 1 {
    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