diff --git a/README b/README index 8a0b360d..bb306bb4 100644 --- a/README +++ b/README @@ -97,7 +97,7 @@ Elastic Cloud (and SSL) use-case:: Using SSL Context with a self-signed cert use-case:: >>> from elasticsearch import Elasticsearch - >>> from elasticsearch.connection.http_urllib3 import create_ssl_context + >>> from elasticsearch.connection import create_ssl_context >>> context = create_ssl_context(cafile="path/to/cafile.pem") >>> es = Elasticsearch("https://elasticsearch.url:port", ssl_context=context, http_auth=('elastic','yourpassword')) diff --git a/docs/connection.rst b/docs/connection.rst index 8bccce36..a14d19ae 100644 --- a/docs/connection.rst +++ b/docs/connection.rst @@ -56,7 +56,7 @@ or you can use the wrapper function :function:`~elasticsearch.connection.http_ur To create an `SSLContext` object you only need to use one of cafile, capath or cadata:: - >>> from elasticsearch.connection.http_urllib3 import create_ssl_context + >>> from elasticsearch.connection import create_ssl_context >>> context = create_ssl_context(cafile=None, capath=None, cadata=None) * `cafile` is the path to your CA File diff --git a/docs/index.rst b/docs/index.rst index 054893e7..e4218a9d 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -200,7 +200,7 @@ elasticsearch cluster, including certificate verification and http auth:: # SSL client authentication using client_cert and client_key - from elasticsearch.connection.http_urllib3 import create_ssl_context + from elasticsearch.connection import create_ssl_context context = create_ssl_context(cafile="path/to/cert.pem") es = Elasticsearch(