# Remote-connect to Elastic Node via Python

**URL:** <https://discuss.elastic.co/t/remote-connect-to-elastic-node-via-python/320485>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [December 5, 2022, 5:00pm UTC](https://discuss.elastic.co/t/remote-connect-to-elastic-node-via-python/320485 "2022-12-05T17:00:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ElasticUser11](https://avatars.discourse-cdn.com/v4/letter/e/ee59a6/32.png) [@ElasticUser11](https://discuss.elastic.co/u/ElasticUser11)\
**Post date:** [December 5, 2022, 5:00pm UTC](https://discuss.elastic.co/t/remote-connect-to-elastic-node-via-python/320485/1 "2022-12-05T17:00:12Z")

</div>

Trying to connect to a single Elastic node via Python, but I keep getting errors, mostly related to certificate issues. I have Elastic installed on an Ubuntu server and then try to connect to it from a Windows 10 machine.

Connecting to it via the browser from the Windows machine is no problem. I get the expected output:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/7/1786dfc63a936a06e6df92ef04abb1ce953d35f0.png)

The problem is when I have to connect using Python. I've tried every example in the tutorial page, but none worked. Here's my latest attempt:

![image](https://us1.discourse-cdn.com/elastic/original/3X/b/d/bdf10cffebb9948cdfb267fbc08e9eabd5572a50.png)

I've copied the certificate from the ubuntu server to the Windows machine, but still it refuses to validate it.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/e/7e46e9740260165c161b2092a43a7be4a79a9e29.png)

I dont know what I'm doing wrong. Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 7, 2022, 5:06am UTC](https://discuss.elastic.co/t/remote-connect-to-elastic-node-via-python/320485/2 "2022-12-07T05:06:21Z")

</div>

Please don't post pictures of text, logs or code. They are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them 🙂

---

<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:** [January 4, 2023, 5:07am UTC](https://discuss.elastic.co/t/remote-connect-to-elastic-node-via-python/320485/3 "2023-01-04T05:07:01Z")

</div>

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