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
3 changed files with 9 additions and 1 deletions
+2
View File
@@ -1439,6 +1439,8 @@ func ListenAndServe(proto, addr string, job *engine.Job) error {
tlsConfig := &tls.Config{
NextProtos: []string{"http/1.1"},
Certificates: []tls.Certificate{cert},
// Avoid fallback on insecure SSL protocols
MinVersion: tls.VersionTLS10,
}
if job.GetenvBool("TlsVerify") {
certPool := x509.NewCertPool()