|
@@ -377,6 +377,11 @@ func (info TLSInfo) ServerConfig() (*tls.Config, error) {
|
|
|
// "h2" NextProtos is necessary for enabling HTTP2 for go's HTTP server
|
|
// "h2" NextProtos is necessary for enabling HTTP2 for go's HTTP server
|
|
|
cfg.NextProtos = []string{"h2"}
|
|
cfg.NextProtos = []string{"h2"}
|
|
|
|
|
|
|
|
|
|
+ // go1.13 enables TLS 1.3 by default
|
|
|
|
|
+ // and in TLS 1.3, cipher suites are not configurable
|
|
|
|
|
+ // setting Max TLS version to TLS 1.2 for go 1.13
|
|
|
|
|
+ cfg.MaxVersion = tls.VersionTLS12
|
|
|
|
|
+
|
|
|
return cfg, nil
|
|
return cfg, nil
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -428,6 +433,11 @@ func (info TLSInfo) ClientConfig() (*tls.Config, error) {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // go1.13 enables TLS 1.3 by default
|
|
|
|
|
+ // and in TLS 1.3, cipher suites are not configurable
|
|
|
|
|
+ // setting Max TLS version to TLS 1.2 for go 1.13
|
|
|
|
|
+ cfg.MaxVersion = tls.VersionTLS12
|
|
|
|
|
+
|
|
|
return cfg, nil
|
|
return cfg, nil
|
|
|
}
|
|
}
|
|
|
|
|
|