mirror of https://github.com/tikv/client-go.git
*: set default tls.MinVersion as tls.VersionTLS10 (#1088)
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com> Co-authored-by: disksing <i@disksing.com>
This commit is contained in:
parent
db2e85c463
commit
85e66083bc
|
|
@ -77,8 +77,9 @@ func (s *Security) ToTLSConfig() (tlsConfig *tls.Config, err error) {
|
|||
return
|
||||
}
|
||||
tlsConfig = &tls.Config{
|
||||
RootCAs: certPool,
|
||||
ClientCAs: certPool,
|
||||
RootCAs: certPool,
|
||||
ClientCAs: certPool,
|
||||
MinVersion: tls.VersionTLS10,
|
||||
}
|
||||
|
||||
if len(s.ClusterSSLCert) != 0 && len(s.ClusterSSLKey) != 0 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue