Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for InsecureSkipVerify (0.28 sec)

  1. internal/config/identity/tls/config.go

    // credentials and mapping client certificates to S3 policies.
    type Config struct {
    	Enabled bool `json:"enabled"`
    
    	// InsecureSkipVerify, if set to true, disables the client
    	// certificate verification. It should only be set for
    	// debugging or testing purposes.
    	InsecureSkipVerify bool `json:"skip_verify"`
    }
    
    const (
    	defaultExpiry time.Duration = 1 * time.Hour
    	minExpiry     time.Duration = 15 * time.Minute
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. src/crypto/tls/handshake_client_test.go

    					}
    					return checkFields(c, called, "client")
    				}
    			},
    		},
    		{
    			name: "InsecureSkipVerify",
    			configureServer: func(config *Config, called *int) {
    				config.ClientAuth = RequireAnyClientCert
    				config.InsecureSkipVerify = true
    				config.VerifyConnection = func(c ConnectionState) error {
    					*called++
    					if l := len(c.PeerCertificates); l != 1 {
    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. pilot/pkg/networking/core/cluster_builder_test.go

    		enableAutoSni            bool
    		enableVerifyCertAtClient bool
    		expectTLSContext         *tls.UpstreamTlsContext
    	}{
    		{
    			name:        "With tls mode simple, InsecureSkipVerify is not specified and ca cert is supplied",
    			cluster:     &cluster.Cluster{Name: "foo", ClusterDiscoveryType: &cluster.Cluster_Type{Type: cluster.Cluster_EDS}},
    			clusterMode: DefaultClusterMode,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 110.4K bytes
    - Viewed (0)
  4. pkg/test/echo/proto/echo.pb.go

    	CaCertFile string `protobuf:"bytes,18,opt,name=caCertFile,proto3" json:"caCertFile,omitempty"`
    	// Skip verifying peer's certificate.
    	InsecureSkipVerify bool `protobuf:"varint,19,opt,name=insecureSkipVerify,proto3" json:"insecureSkipVerify,omitempty"`
    	// List of ALPNs to present. If not set, this will be automatically be set based on the protocol
    	Alpn *Alpn `protobuf:"bytes,13,opt,name=alpn,proto3" json:"alpn,omitempty"`
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 02:27:10 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  5. pkg/config/validation/validation_test.go

    					CaCertificates:  "test",
    					SubjectAltNames: []string{"reviews.default.svc"},
    					InsecureSkipVerify: &wrapperspb.BoolValue{
    						Value: false,
    					},
    				},
    			},
    		}, valid: true},
    
    		{name: "InsecureSkipVerify is set false with tls mode simple, and the ca cert is specified by CredentialName", in: &networking.DestinationRule{
    			Host: "reviews",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 03:11:45 UTC 2024
    - 196K bytes
    - Viewed (0)
  6. src/crypto/tls/common.go

    	// that servers use if required to verify a client certificate
    	// by the policy in ClientAuth.
    	ClientCAs *x509.CertPool
    
    	// InsecureSkipVerify controls whether a client verifies the server's
    	// certificate chain and host name. If InsecureSkipVerify is true, crypto/tls
    	// accepts any certificate presented by the server and any host name in that
    	// certificate. In this mode, TLS is susceptible to machine-in-the-middle
    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/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)
  8. 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)
  9. 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)
  10. src/net/http/transport_internal_test.go

    					}
    					roundTripped = true
    					return nil, http2noCachedConnError{}
    				})
    			},
    		},
    		DialTLS: func(_, _ string) (net.Conn, error) {
    			tc, err := tls.Dial("tcp", addr, &tls.Config{
    				InsecureSkipVerify: true,
    				NextProtos:         []string{"foo"},
    			})
    			if err != nil {
    				return nil, err
    			}
    			if err := tc.Handshake(); err != nil {
    				return nil, err
    			}
    			return tc, nil
    		},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:57:17 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top