don't use TLS 1.3, which isn't quite right yet in Go tip

This commit is contained in:
Josh Humphries 2018-11-13 10:47:37 -05:00
parent 0dea37ee70
commit 64756c00cf
1 changed files with 1 additions and 0 deletions

View File

@ -516,6 +516,7 @@ func ClientTransportCredentials(insecureSkipVerify bool, cacertFile, clientCertF
// client certs. The serverCertFile and serverKeyFile must both not be blank.
func ServerTransportCredentials(cacertFile, serverCertFile, serverKeyFile string, requireClientCerts bool) (credentials.TransportCredentials, error) {
var tlsConf tls.Config
tlsConf.MaxVersion = tls.VersionTLS12
// Load the server certificates from disk
certificate, err := tls.LoadX509KeyPair(serverCertFile, serverKeyFile)