MinVersion is missing from this TLS configuration GO-S1020
Security
Major
6 months ago2 years old
MinVersion is missing from this TLS configuration: tls.Config
395	}
396
397	// Bind server and CA certs into chain for TLS listener configuration
398	server.TLS = &tls.Config{}399	server.TLS.Certificates = []tls.Certificate{
400		{Certificate: [][]byte{serverCert.Raw}, Leaf: serverCert, PrivateKey: caKey},
401		{Certificate: [][]byte{caCert.Raw}, Leaf: caCert},
MinVersion is missing from this TLS configuration: tls.Config
 725		return nil, err
 726	}
 727
 728	return &tls.Config{ 729		RootCAs:      pool,
 730		Certificates: []tls.Certificate{clientCert},
 731	}, nil
MinVersion is missing from this TLS configuration: tls.Config
234		return defaultClient
235	}
236
237	tlsConfig := &tls.Config{238		RootCAs: x509.NewCertPool(),
239	}
240
MinVersion is missing from this TLS configuration: tls.Config
 34	insecureClient = &http.Client{
 35		Timeout: defaultClientTimeout,
 36		Transport: &http.Transport{
 37			TLSClientConfig: &tls.Config{ 38				InsecureSkipVerify: true,
 39			},
 40		},