# Enable secure connection from Kibana to Elasticsearch

**URL:** <https://discuss.elastic.co/t/enable-secure-connection-from-kibana-to-elasticsearch/285255>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [September 27, 2021, 4:01pm UTC](https://discuss.elastic.co/t/enable-secure-connection-from-kibana-to-elasticsearch/285255 "2021-09-27T16:01:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ls4074](https://avatars.discourse-cdn.com/v4/letter/l/a9a28c/32.png) [@ls4074](https://discuss.elastic.co/u/ls4074)\
**Post date:** [September 27, 2021, 4:01pm UTC](https://discuss.elastic.co/t/enable-secure-connection-from-kibana-to-elasticsearch/285255/1 "2021-09-27T16:01:03Z")

</div>

I have xpack enabled on Elasticsearch (ES) on both http layer and transport layer. Now I am trying to enable the secure connection from Kibana to ES. I have added these in Kibana.yaml

elasticsearchHosts: "[https://elasticsearch-master:9200](https://elasticsearch-master:9200)"  
Elasticsearch.ssl.certificateAuthorities: /usr/share/kibana/config/certs/elastic-stack-ca.pem  
secretMounts:

- name: elastic-ca-pem  
secretName: elastic-ca-pem  
path: /usr/share/kibana/config/certs

BTW, I created the secret elastic-ca-pem based on elastic-stack-ca.pem (I converted elastic-stack-ca.p12 to elastic-stack-ca.pem).

But after restarting Kibana pod, the pod in not in ready state. And I see the following in the log:  
{"type":"log","@timestamp":"2021-09-24T21:16:19+00:00","tags":["error","savedobjects-service"],"pid":952,"message":"Unable to retrieve version information from Elasticsearch nodes."}

My ES is running 7.13.2 and Kibana is running 7.13.3. Could this be an issue?

Thanks!

---

<div class="post-metadata">

**Author:** ![zx8086](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zx8086/32/94917_2.png) [@zx8086](https://discuss.elastic.co/u/zx8086)\
**Post date:** [September 28, 2021, 9:10am UTC](https://discuss.elastic.co/t/enable-secure-connection-from-kibana-to-elasticsearch/285255/2 "2021-09-28T09:10:39Z")

</div>

Just out of curiosity, what happens when you remove the port number ?

---

<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 26, 2021, 9:11am UTC](https://discuss.elastic.co/t/enable-secure-connection-from-kibana-to-elasticsearch/285255/3 "2021-10-26T09:11:28Z")

</div>

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