Skip to content

Commit

Permalink
util: Use TLSv1.2 as minimum TLS version by default (pingcap#36037)
Browse files Browse the repository at this point in the history
  • Loading branch information
dveeden authored and AilinKid committed Jan 17, 2024
1 parent 426bab2 commit ed412df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ func LoadTLSCertificates(ca, key, cert string, autoTLS bool, rsaKeySize int) (tl

requireTLS := tlsutil.RequireSecureTransport.Load()

var minTLSVersion uint16 = tls.VersionTLS11
var minTLSVersion uint16 = tls.VersionTLS12
switch tlsver := config.GetGlobalConfig().Security.MinTLSVersion; tlsver {
case "TLSv1.0":
minTLSVersion = tls.VersionTLS10
Expand Down

0 comments on commit ed412df

Please sign in to comment.