# Trouble connecting to ElasticSearch Cloud via python library

**URL:** <https://discuss.elastic.co/t/trouble-connecting-to-elasticsearch-cloud-via-python-library/121568>\
**Category:** Elasticsearch\
**Created:** [February 26, 2018, 9:45pm UTC](https://discuss.elastic.co/t/trouble-connecting-to-elasticsearch-cloud-via-python-library/121568 "2018-02-26T21:45:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![David9](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/david9/32/42150_2.png) [@David9](https://discuss.elastic.co/u/David9)\
**Post date:** [February 26, 2018, 9:45pm UTC](https://discuss.elastic.co/t/trouble-connecting-to-elasticsearch-cloud-via-python-library/121568/1 "2018-02-26T21:45:15Z")

</div>

Using [https://elasticsearch-py.readthedocs.io/en/master/](https://elasticsearch-py.readthedocs.io/en/master/)

Can't connect, it's telling me "elasticsearch.exceptions.ImproperlyConfigured: Root certificates are missing for certificate validation. Either pass them in using the ca\_certs parameter or install certifi to use it automatically." I didn't think certs were required to connect to Cloud instance, I'm guessing I'm just using this constructor incorrectly?

es = Elasticsearch(  
['[https://xxxxx.us-east-1.aws.found.io](https://xxxxx.us-east-1.aws.found.io)'],  
http\_auth=('elastic', 'password'),  
scheme="https",  
port=9243  
)

---

<div class="post-metadata">

**Author:** ![David9](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/david9/32/42150_2.png) [@David9](https://discuss.elastic.co/u/David9)\
**Post date:** [February 26, 2018, 9:59pm UTC](https://discuss.elastic.co/t/trouble-connecting-to-elasticsearch-cloud-via-python-library/121568/2 "2018-02-26T21:59:35Z")

</div>

SOLUTION: I inserted verify\_certs=False and this now works.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 12, 2018, 9:59pm UTC](https://discuss.elastic.co/t/trouble-connecting-to-elasticsearch-cloud-via-python-library/121568/3 "2018-03-12T21:59:42Z")

</div>

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