# How to create secure connection with elasticsearch in ruby client?

**URL:** <https://discuss.elastic.co/t/how-to-create-secure-connection-with-elasticsearch-in-ruby-client/203031>\
**Category:** Logstash\
**Created:** [October 10, 2019, 1:14pm UTC](https://discuss.elastic.co/t/how-to-create-secure-connection-with-elasticsearch-in-ruby-client/203031 "2019-10-10T13:14:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![talbehat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/talbehat/32/84367_2.png) [@talbehat](https://discuss.elastic.co/u/talbehat)\
**Post date:** [October 10, 2019, 1:14pm UTC](https://discuss.elastic.co/t/how-to-create-secure-connection-with-elasticsearch-in-ruby-client/203031/1 "2019-10-10T13:14:24Z")

</div>

in using logstash to create client connection with elasticsearch for \_search endpoint.

it is running fine with http, but not with https.

currently i am using elasticsearch-transport client gem in my code.

can someone help me to figure out this problem?

---

<div class="post-metadata">

**Author:** ![talbehat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/talbehat/32/84367_2.png) [@talbehat](https://discuss.elastic.co/u/talbehat)\
**Post date:** [October 11, 2019, 8:15am UTC](https://discuss.elastic.co/t/how-to-create-secure-connection-with-elasticsearch-in-ruby-client/203031/2 "2019-10-11T08:15:02Z")

</div>

can elastic community help me ?

i have seen as no response

---

<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:** [November 8, 2019, 8:15am UTC](https://discuss.elastic.co/t/how-to-create-secure-connection-with-elasticsearch-in-ruby-client/203031/3 "2019-11-08T08:15:04Z")

</div>

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