Merge pull request #8588 from dqminh/remove-sslv3
remove sslv3 from server's TLS supported versions
This commit is contained in:
commit
4c89bdaba2
1 changed files with 5 additions and 1 deletions
|
@ -36,7 +36,11 @@ const (
|
|||
)
|
||||
|
||||
func newClient(jar http.CookieJar, roots *x509.CertPool, cert *tls.Certificate, timeout TimeoutType) *http.Client {
|
||||
tlsConfig := tls.Config{RootCAs: roots}
|
||||
tlsConfig := tls.Config{
|
||||
RootCAs: roots,
|
||||
// Avoid fallback to SSL protocols < TLS1.0
|
||||
MinVersion: tls.VersionTLS10,
|
||||
}
|
||||
|
||||
if cert != nil {
|
||||
tlsConfig.Certificates = append(tlsConfig.Certificates, *cert)
|
||||
|
|
Loading…
Reference in a new issue