# What do you enter as the "host" while deploying a 3 node cluster and using elasticsearch\_certutil http

**URL:** <https://discuss.elastic.co/t/what-do-you-enter-as-the-host-while-deploying-a-3-node-cluster-and-using-elasticsearch-certutil-http/278853>\
**Category:** Kibana\
**Tags:** elastic-stack-security, docker\
**Created:** [July 16, 2021, 5:23am UTC](https://discuss.elastic.co/t/what-do-you-enter-as-the-host-while-deploying-a-3-node-cluster-and-using-elasticsearch-certutil-http/278853 "2021-07-16T05:23:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shubh\_Garg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shubh_garg/32/91716_2.png) [@Shubh\_Garg](https://discuss.elastic.co/u/Shubh_Garg)\
**Post date:** [July 16, 2021, 5:23am UTC](https://discuss.elastic.co/t/what-do-you-enter-as-the-host-while-deploying-a-3-node-cluster-and-using-elasticsearch-certutil-http/278853/1 "2021-07-16T05:23:37Z")

</div>

I am having trouble getting the correct http certificate. I have deployed a 3 node cluster according to the config. mentioned in this elastic article - [Encrypting communications in an Elasticsearch Docker Container | Elasticsearch Guide [7.13] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/configuring-tls-docker.html)

The ssl/tls part here is done and it works fine. But now that I go for the Elastic Stack plus secured HTTPS traffic, i run the mentioned steps and do the necessary changes in the .yml file.  
But on running the configuration i get the following errors:-

1. Two keystore can not exist. ( one for ssl, one for http)

then after removing ssl as the keystore and keeping the http key  
2. error","savedobjects-service"],"pid":951,"message":"Unable to retrieve version information from Elasticsearch nodes.  
The kibana does not work with the http key (the cluster works at 30 % red status)

My last question is about this article - [Set up basic security for the Elastic Stack plus secured HTTPS traffic | Elasticsearch Guide [7.13] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-basic-setup-https.html)

in step 2(h) what should i enter as hostname? Is it the node es01,es02,es03 ?  
( for ref. to my .yml file [Encrypting communications in an Elasticsearch Docker Container | Elasticsearch Guide [7.13] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/configuring-tls-docker.html))

---

<div class="post-metadata">

**Author:** ![Patrick\_Mueller](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/patrick_mueller/32/109425_2.png) [@Patrick\_Mueller](https://discuss.elastic.co/u/Patrick_Mueller)\
**Post date:** [July 28, 2021, 6:19pm UTC](https://discuss.elastic.co/t/what-do-you-enter-as-the-host-while-deploying-a-3-node-cluster-and-using-elasticsearch-certutil-http/278853/2 "2021-07-28T18:19:00Z")

</div>

Hello Shubh!

I did a quick search on the keystore message you posted, and couldn't find anything. Was that the exact message that was logged? And if I had to guess, you probably need to use the ssl keystore and not the http one, but ... I'm not sure.

Regarding how to specify the elasticsearch host names in the Kibana config, this documentation show an example: [Running the Elastic Stack on Docker | Getting Started [7.13] | Elastic](https://www.elastic.co/guide/en/elastic-stack-get-started/current/get-started-docker.html)

```auto
kib01:
    image: docker.elastic.co/kibana/kibana:7.13.4
    container_name: kib01
    ports:
      - 5601:5601
    environment:
      ELASTICSEARCH_URL: http://es01:9200
      ELASTICSEARCH_HOSTS: '["http://es01:9200","http://es02:9200","http://es03:9200"]'
    networks:
      - elastic

```

Presumably you'd use `https://es01:9200`, instead of with the `http://` prefix ...

---

<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:** [August 25, 2021, 6:19pm UTC](https://discuss.elastic.co/t/what-do-you-enter-as-the-host-while-deploying-a-3-node-cluster-and-using-elasticsearch-certutil-http/278853/3 "2021-08-25T18:19:06Z")

</div>

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