# Can't connect with elasticsearch because of https or SSL security

**URL:** <https://discuss.elastic.co/t/cant-connect-with-elasticsearch-because-of-https-or-ssl-security/312581>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [August 22, 2022, 7:27am UTC](https://discuss.elastic.co/t/cant-connect-with-elasticsearch-because-of-https-or-ssl-security/312581 "2022-08-22T07:27:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sarindra\_Therese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sarindra_therese/32/103180_2.png) [@Sarindra\_Therese](https://discuss.elastic.co/u/Sarindra_Therese)\
**Post date:** [August 22, 2022, 7:27am UTC](https://discuss.elastic.co/t/cant-connect-with-elasticsearch-because-of-https-or-ssl-security/312581/1 "2022-08-22T07:27:59Z")

</div>

Hey,  
I have some problems when i want to connect elasticsearch port,  
for example i can't connect python to elasticsearch because of ssl, the https, the same for kafka confluent,  
I've already use some technique like add some properties in yml file:

```auto
xpack.security.authc:
  anonymous:
    username: anonymous_user 
    roles: role1, role2 
    authz_exception: true

```

but nothing happen!  
so what should i do to use/connect elasticsearch port [https://localhost:9200/](https://localhost:9200/) in another platform  
thanks

---

<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:** [August 22, 2022, 7:31am UTC](https://discuss.elastic.co/t/cant-connect-with-elasticsearch-because-of-https-or-ssl-security/312581/2 "2022-08-22T07:31:47Z")

</div>

It'd be good to understand if you got an error or any kind of response from Elasticsearch when using HTTPS.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [August 22, 2022, 7:34am UTC](https://discuss.elastic.co/t/cant-connect-with-elasticsearch-because-of-https-or-ssl-security/312581/3 "2022-08-22T07:34:04Z")

</div>

What is the definition of `role1` and `role2`?

---

<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:** [September 19, 2022, 7:34am UTC](https://discuss.elastic.co/t/cant-connect-with-elasticsearch-because-of-https-or-ssl-security/312581/4 "2022-09-19T07:34:43Z")

</div>

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