Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 78 for InsecureSkipVerify (0.64 sec)

  1. src/crypto/x509/hybrid_pool_test.go

    			}
    			time.Sleep(nextSleep)
    		}
    	}
    
    	// Get the google.com chain, which should be valid on all platforms we
    	// are testing
    	c, err := tls.Dial("tcp", "google.com:443", &tls.Config{InsecureSkipVerify: true})
    	if err != nil {
    		t.Fatalf("tls connection failed: %s", err)
    	}
    	googChain := c.ConnectionState().PeerCertificates
    
    	rootTmpl := &x509.Certificate{
    		SerialNumber:          big.NewInt(1),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:48:11 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. src/crypto/tls/tls_test.go

    func testVerifyCertificates(t *testing.T, version uint16) {
    	tests := []struct {
    		name string
    
    		InsecureSkipVerify bool
    		ClientAuth         ClientAuthType
    		ClientCertificates bool
    	}{
    		{
    			name: "defaults",
    		},
    		{
    			name:               "InsecureSkipVerify",
    			InsecureSkipVerify: true,
    		},
    		{
    			name:       "RequestClientCert with no certs",
    			ClientAuth: RequestClientCert,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
  3. pkg/test/framework/components/istio/ca.go

    	certPool := x509.NewCertPool()
    	ok := certPool.AppendCertsFromPEM(rootCert)
    	if !ok {
    		return nil, fmt.Errorf("failed to append certificates")
    	}
    	config := tls.Config{
    		RootCAs:            certPool,
    		InsecureSkipVerify: true, // nolint: gosec // test only code
    	}
    	transportCreds := credentials.NewTLS(&config)
    
    	conn, err := grpc.Dial(endpoint, grpc.WithTransportCredentials(transportCreds))
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 16:59:05 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. src/cmd/vendor/github.com/google/pprof/internal/transport/transport.go

    	}
    
    	if req.URL.Scheme == "https+insecure" {
    		// Make shallow copy of request, and req.URL, so the request's URL can be
    		// modified.
    		r := *req
    		*r.URL = *req.URL
    		req = &r
    		tlsConfig.InsecureSkipVerify = true
    		req.URL.Scheme = "https"
    	}
    
    	transport := http.Transport{
    		Proxy:           http.ProxyFromEnvironment,
    		TLSClientConfig: tlsConfig,
    	}
    
    	return transport.RoundTrip(req)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 18:58:12 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/storage/storage_factory.go

    	servers := sets.NewString(storageConfig.Transport.ServerList...)
    
    	for _, overrides := range grOverrides {
    		servers.Insert(overrides.etcdLocation...)
    	}
    
    	tlsConfig := &tls.Config{
    		InsecureSkipVerify: true,
    	}
    	if len(storageConfig.Transport.CertFile) > 0 && len(storageConfig.Transport.KeyFile) > 0 {
    		cert, err := tls.LoadX509KeyPair(storageConfig.Transport.CertFile, storageConfig.Transport.KeyFile)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 20 13:35:58 UTC 2023
    - 14.1K bytes
    - Viewed (0)
  6. pkg/probe/http/http.go

    // If disabled, redirects to other hosts will trigger a warning result.
    func New(followNonLocalRedirects bool) Prober {
    	tlsConfig := &tls.Config{InsecureSkipVerify: true}
    	return NewWithTLSConfig(tlsConfig, followNonLocalRedirects)
    }
    
    // NewWithTLSConfig takes tls config as parameter.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 10 00:37:32 UTC 2023
    - 5K bytes
    - Viewed (0)
  7. internal/http/transports.go

    func (s ConnSettings) NewRemoteTargetHTTPTransport(insecure bool) func() *http.Transport {
    	tr := s.getDefaultTransport(0)
    
    	tr.TLSHandshakeTimeout = 10 * time.Second
    	tr.ResponseHeaderTimeout = 0
    	tr.TLSClientConfig.InsecureSkipVerify = insecure
    
    	return func() *http.Transport {
    		return tr
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. 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)
  9. pkg/wasm/httpfetcher.go

    	}
    	transport := http.DefaultTransport.(*http.Transport).Clone()
    	// nolint: gosec
    	// This is only when a user explicitly sets a flag to enable insecure mode
    	transport.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
    	return &HTTPFetcher{
    		client: &http.Client{
    			Timeout: requestTimeout,
    		},
    		insecureClient: &http.Client{
    			Timeout:   requestTimeout,
    			Transport: transport,
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 14 20:23:34 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  10. pkg/test/framework/components/echo/calloptions.go

    	Cert, Key, CaCert string
    
    	// Use the custom certificates file to make the call.
    	CertFile, KeyFile, CaCertFile string
    
    	// Skip verify peer's certificate.
    	InsecureSkipVerify bool
    
    	Alpn       []string
    	ServerName string
    }
    
    type HBONE struct {
    	Address string
    	Headers http.Header
    	// If non-empty, make the request with the corresponding cert and key.
    	Cert string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Oct 08 09:39:20 UTC 2023
    - 13K bytes
    - Viewed (0)
Back to top