mirror of https://github.com/tikv/client-go.git
Change MinTLSVersion to TLSv1.2 (#1116)
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
This commit is contained in:
parent
b1256130a5
commit
1fd589dbf2
|
|
@ -77,9 +77,8 @@ func (s *Security) ToTLSConfig() (tlsConfig *tls.Config, err error) {
|
|||
return
|
||||
}
|
||||
tlsConfig = &tls.Config{
|
||||
RootCAs: certPool,
|
||||
ClientCAs: certPool,
|
||||
MinVersion: tls.VersionTLS10,
|
||||
RootCAs: certPool,
|
||||
ClientCAs: certPool,
|
||||
}
|
||||
|
||||
if len(s.ClusterSSLCert) != 0 && len(s.ClusterSSLKey) != 0 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue