# How to Enable SSL only for Kibana not Elasticsearch

**URL:** https://discuss.elastic.co/t/how-to-enable-ssl-only-for-kibana-not-elasticsearch/353349
**Category:** Kibana
**Tags:** elastic-stack-security
**Created:** [February 15, 2024, 9:19am UTC](https://discuss.elastic.co/t/how-to-enable-ssl-only-for-kibana-not-elasticsearch/353349 "2024-02-15T09:19:35Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ersalil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ersalil/32/131773_2.png) [@ersalil](https://discuss.elastic.co/u/ersalil)
#### Post date: [February 15, 2024, 9:19am UTC](https://discuss.elastic.co/t/how-to-enable-ssl-only-for-kibana-not-elasticsearch/353349/1 "2024-02-15T09:19:35Z")

</div>

Hello, I have a go application which is using elastic client, I want to enable the ssl for communication between kibana and elasticsearch but not go client with elasticsearch.

Note: Editing go code is not in option.

Can anyone help me with that, any help will be greatly appreciated.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [February 15, 2024, 10:55am UTC](https://discuss.elastic.co/t/how-to-enable-ssl-only-for-kibana-not-elasticsearch/353349/2 "2024-02-15T10:55:42Z")

</div>

I don't think you can do that, but I'm unsure...  
What's the goal for this? I mean as soon as you have an insecure component in your platform, your platform is at risk...

---

<div class="post-metadata">

### Author: ![ersalil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ersalil/32/131773_2.png) [@ersalil](https://discuss.elastic.co/u/ersalil)
#### Post date: [February 15, 2024, 11:11am UTC](https://discuss.elastic.co/t/how-to-enable-ssl-only-for-kibana-not-elasticsearch/353349/3 "2024-02-15T11:11:10Z")

</div>

Actually, We have setup the elasticsearch and kibana with the SSL on both http and TLS but unable to connect the go application with the elasticsearch as I think to do so, it require to change the code in go for elastic agent.

(Either mentioning the ssl certificate or using the ignore ssl boolean.)  
Which is not possible in our present situation.

Security is not a concern within the cluster as it is private and secure, but with kibana yes it is required.

So Is there any option to setup elastic client on go, with just username and password (Basic auth) and enabling ssl between kibana and elasticsearch

---

<div class="post-metadata">

### Author: ![ersalil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ersalil/32/131773_2.png) [@ersalil](https://discuss.elastic.co/u/ersalil)
#### Post date: [February 16, 2024, 8:15am UTC](https://discuss.elastic.co/t/how-to-enable-ssl-only-for-kibana-not-elasticsearch/353349/4 "2024-02-16T08:15:27Z")

</div>

Looking for the responses, Any help is greatly appriciated.  
Thanks in Advance.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [February 16, 2024, 10:20am UTC](https://discuss.elastic.co/t/how-to-enable-ssl-only-for-kibana-not-elasticsearch/353349/5 "2024-02-16T10:20:35Z")

</div>

I don't know if you can do it. I'd not. I'd definitely change the Go code.

But here are some pointers in case you'd like to explore:

- [Set up basic security for the Elastic Stack plus secured HTTPS traffic | Elasticsearch Guide [8.12] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.12/security-basic-setup-https.html#encrypt-kibana-browser)

I don't think you can activate this only without a secured communication with Elasticsearch.

I'd suggest that you try this by yourself but again be aware of the security hole you'd be creating in such a case.

---

<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: [March 15, 2024, 10:20am UTC](https://discuss.elastic.co/t/how-to-enable-ssl-only-for-kibana-not-elasticsearch/353349/6 "2024-03-15T10:20:55Z")

</div>

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