diff --git a/README.md b/README.md index 02b8fee657..0290aff22c 100644 --- a/README.md +++ b/README.md @@ -159,7 +159,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 7544e73b99..c06fc3fd2c 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 d8bdcc0a5c..eff9d0eb46 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 18a3d0486a..d46e0821d0 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, }, },