File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,8 @@ var allTLSVersions = map[uint16]struct{}{
65
65
// ServerDefault returns a secure-enough TLS configuration for the server TLS configuration.
66
66
func ServerDefault (ops ... func (* tls.Config )) * tls.Config {
67
67
tlsconfig := & tls.Config {
68
- // Avoid fallback by default to SSL protocols < TLS1.0
69
- MinVersion : tls .VersionTLS10 ,
68
+ // Avoid fallback by default to SSL protocols < TLS1.2
69
+ MinVersion : tls .VersionTLS12 ,
70
70
PreferServerCipherSuites : true ,
71
71
CipherSuites : DefaultServerAcceptedCiphers ,
72
72
}
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ func TestConfigServerTLSServerCertsOnly(t *testing.T) {
133
133
if ! tlsConfig .PreferServerCipherSuites {
134
134
t .Fatal ("Expected server to prefer cipher suites" )
135
135
}
136
- if tlsConfig .MinVersion != tls .VersionTLS10 {
136
+ if tlsConfig .MinVersion != tls .VersionTLS12 {
137
137
t .Fatal ("Unexpected server TLS version" )
138
138
}
139
139
}
@@ -329,7 +329,6 @@ func TestConfigClientDefaultWithTLSMinimumModifier(t *testing.T) {
329
329
// minimum version should be set accordingly
330
330
func TestConfigServerTLSMinVersionIsSetBasedOnOptions (t * testing.T ) {
331
331
versions := []uint16 {
332
- tls .VersionTLS11 ,
333
332
tls .VersionTLS12 ,
334
333
}
335
334
key , cert := getCertAndKey ()
You can’t perform that action at this time.
0 commit comments