Merge pull request #8588 from dqminh/remove-sslv3

remove sslv3 from server's TLS supported versions
This commit is contained in:
Tibor Vass 2014-10-17 12:05:48 -04:00
commit 4c89bdaba2

View file

@ -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)