diff --git a/README.md b/README.md index 1373b936e1..0df68ea179 100644 --- a/README.md +++ b/README.md @@ -162,7 +162,7 @@ cfg := elasticsearch.Config{ MaxIdleConnsPerHost: 10, ResponseHeaderTimeout: time.Second, TLSClientConfig: &tls.Config{ - MinVersion: tls.VersionTLS11, + MinVersion: tls.VersionTLS12, // ... }, // ... diff --git a/_examples/configuration.go b/_examples/configuration.go index c7e2e860dc..17e1b7cf73 100644 --- a/_examples/configuration.go +++ b/_examples/configuration.go @@ -44,7 +44,7 @@ func main() { ResponseHeaderTimeout: time.Millisecond, DialContext: (&net.Dialer{Timeout: time.Nanosecond}).DialContext, TLSClientConfig: &tls.Config{ - MinVersion: tls.VersionTLS11, + MinVersion: tls.VersionTLS12, // ... }, }, diff --git a/doc.go b/doc.go index 2591cbadf2..f24fc7af49 100644 --- a/doc.go +++ b/doc.go @@ -39,7 +39,7 @@ To configure the client, pass a Config object to the NewClient function: ResponseHeaderTimeout: time.Second, DialContext: (&net.Dialer{Timeout: time.Second}).DialContext, TLSClientConfig: &tls.Config{ - MinVersion: tls.VersionTLS11, + MinVersion: tls.VersionTLS12, }, }, } diff --git a/elasticsearch_example_test.go b/elasticsearch_example_test.go index 8756362c55..850e10d145 100644 --- a/elasticsearch_example_test.go +++ b/elasticsearch_example_test.go @@ -62,7 +62,7 @@ func ExampleNewClient() { ResponseHeaderTimeout: time.Second, DialContext: (&net.Dialer{Timeout: time.Second}).DialContext, TLSClientConfig: &tls.Config{ - MinVersion: tls.VersionTLS11, + MinVersion: tls.VersionTLS12, }, }, } diff --git a/elasticsearch_integration_test.go b/elasticsearch_integration_test.go index 252f6f08c4..7b843ffd56 100644 --- a/elasticsearch_integration_test.go +++ b/elasticsearch_integration_test.go @@ -139,7 +139,7 @@ func TestClientTransport(t *testing.T) { ResponseHeaderTimeout: time.Second, DialContext: (&net.Dialer{Timeout: time.Nanosecond}).DialContext, TLSClientConfig: &tls.Config{ - MinVersion: tls.VersionTLS11, + MinVersion: tls.VersionTLS12, InsecureSkipVerify: true, }, },