Python 3.6 and SSL issues

Hello,

I keep on getting the following error

elasticsearch.exceptions.SSLError: ConnectionError([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:847)) caused by: SSLError([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:847))

below is my code code is

es = Elasticsearch(
['https://my_IP:64297/es/'],
# turn on SSL
use_ssl=True,
# make sure we verify SSL certificates
http_auth=('test', 'test'),
# no verify SSL certificates
verify_certs=False,
ca_certs=False
)

need your great wisdom

pip3 install --upgrade --user urllib3==1.24.3

This fixed it

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.