title: python elasticsearch elasticsearch.exceptions.SSLError: ConnectionError([SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1056))
body: <p>I'm trying to connect to an elasticsearch server using the elasticsearch package, but getting this error</p>
  <pre><code>  File &quot;/Users/xxx/.local/share/virtualenvs/backend-J1KVvbjz/lib/python3.7/site-packages/elasticsearch/client/utils.py&quot;, line 152, in _wrapped
      return func(*args, params=params, headers=headers, **kwargs)
    File &quot;/Users/xxx/.local/share/virtualenvs/backend-J1KVvbjz/lib/python3.7/site-packages/elasticsearch/client/indices.py&quot;, line 331, in exists
      &quot;HEAD&quot;, _make_path(index), params=params, headers=headers
    File &quot;/Users/xxx/.local/share/virtualenvs/backend-J1KVvbjz/lib/python3.7/site-packages/elasticsearch/transport.py&quot;, line 390, in perform_request
      raise e
    File &quot;/Users/xxx/.local/share/virtualenvs/backend-J1KVvbjz/lib/python3.7/site-packages/elasticsearch/transport.py&quot;, line 365, in perform_request
      timeout=timeout,
    File &quot;/Users/xxx/.local/share/virtualenvs/backend-J1KVvbjz/lib/python3.7/site-packages/elasticsearch/connection/http_urllib3.py&quot;, line 255, in perform_request
      raise SSLError(&quot;N/A&quot;, str(e), e)
  elasticsearch.exceptions.SSLError: ConnectionError([SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1056)) caused by: SSLError([SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1056))
  </code></pre>
  <p>Any ideas what could be fixing the problem ?</p>