# Does the Elasticsearch Ruby gem support both http and https hosts?

**URL:** https://discuss.elastic.co/t/does-the-elasticsearch-ruby-gem-support-both-http-and-https-hosts/342477
**Category:** Elasticsearch
**Created:** [September 6, 2023, 9:38pm UTC](https://discuss.elastic.co/t/does-the-elasticsearch-ruby-gem-support-both-http-and-https-hosts/342477 "2023-09-06T21:38:57Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ddzz](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@ddzz](https://discuss.elastic.co/u/ddzz)
#### Post date: [September 6, 2023, 9:38pm UTC](https://discuss.elastic.co/t/does-the-elasticsearch-ruby-gem-support-both-http-and-https-hosts/342477/1 "2023-09-06T21:38:57Z")

</div>

I want to transition a cluster of ES nodes from HTTP to HTTPS. When the list of hosts I pass in to the ES client is either all http or https, it works fine. But when it's a mix I run into a variety of errors. Does the gem support a mix of https and http nodes, or does it have to be one or the other? Thanks.

---

<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: [October 4, 2023, 9:39pm UTC](https://discuss.elastic.co/t/does-the-elasticsearch-ruby-gem-support-both-http-and-https-hosts/342477/2 "2023-10-04T21:39:01Z")

</div>

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