# TLS error caused by: SSLError(hostname 'my\_ip' doesn't match either of 'FE80:0:0:0:E062:44FF:FEA0:4B20', 'platform',

**URL:** <https://discuss.elastic.co/t/tls-error-caused-by-sslerror-hostname-my-ip-doesnt-match-either-of-fe800e062fea0-4b20-platform/347648>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [November 21, 2023, 2:49pm UTC](https://discuss.elastic.co/t/tls-error-caused-by-sslerror-hostname-my-ip-doesnt-match-either-of-fe800e062fea0-4b20-platform/347648 "2023-11-21T14:49:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shuaiqi\_duan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shuaiqi_duan/32/127872_2.png) [@shuaiqi\_duan](https://discuss.elastic.co/u/shuaiqi_duan)\
**Post date:** [November 21, 2023, 2:49pm UTC](https://discuss.elastic.co/t/tls-error-caused-by-sslerror-hostname-my-ip-doesnt-match-either-of-fe800e062fea0-4b20-platform/347648/1 "2023-11-21T14:49:08Z")

</div>

I'm new to Elasticsearch. I followed the official documentation to install and start a single-node Elasticsearch service. The service automatically enabled security features and generated a CA certificate for me, which is located in the config/cert directory. Then, on my local machine, I was able to successfully connect using:

```auto
es_client = Elasticsearch("https://127.0.0.1:9200", basic_auth=('elastic', ' ***********'), verify_certs=True, ca_certs='path/elasticsearch-8.11.0/config/certs/http_ca.crt')

```

However, when I downloaded the http\_ca.crt certificate to my Mac and tried to connect using:

```auto
es_client = Elasticsearch("https://my server ip:9200", basic_auth=('elastic', ' ******'),verify_certs=True, ca_certs='./http_ca.crt')

```

I encountered an error:

```auto
TLS error caused by: TlsError(TLS error caused by: SSLError(hostname 'my server ip' doesn't match either of 'FE80:0:0:0:E062:44FF:FEA0:4B20', 'platform', 'FE80:0:0:0:24D1:66FF:FE8F:19', 'localhost', '10.203.0.64', 'FE80:0:0:0:4C14:B9FF:FE56:E593', '10.204.0.64', '10.206.0.65', '0:0:0:0:0:0:0:1', '127.0.0.1', '10.205.0.65', 'FE80:0:0:0:88E2:D8FF:FE39:AFB0', '10.201.202.75', 'FE80:0:0:0:34F7:C1FF:FE05:5531'))

```

What should I do to resolve this?"

---

<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:** [December 19, 2023, 2:49pm UTC](https://discuss.elastic.co/t/tls-error-caused-by-sslerror-hostname-my-ip-doesnt-match-either-of-fe800e062fea0-4b20-platform/347648/2 "2023-12-19T14:49:41Z")

</div>

Closed on December 19, 2023, 2:49pm UTC

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