# Enabling SSL Security between Elasticsearch & Kibana when both are on the same server

**URL:** <https://discuss.elastic.co/t/enabling-ssl-security-between-elasticsearch-kibana-when-both-are-on-the-same-server/293141>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [December 29, 2021, 4:33pm UTC](https://discuss.elastic.co/t/enabling-ssl-security-between-elasticsearch-kibana-when-both-are-on-the-same-server/293141 "2021-12-29T16:33:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![byoungman](https://avatars.discourse-cdn.com/v4/letter/b/838e76/32.png) [@byoungman](https://discuss.elastic.co/u/byoungman)\
**Post date:** [December 29, 2021, 4:33pm UTC](https://discuss.elastic.co/t/enabling-ssl-security-between-elasticsearch-kibana-when-both-are-on-the-same-server/293141/1 "2021-12-29T16:33:28Z")

</div>

I am trying to enable security and SSL for my Elastic Stack so that I can't take advantage of the additional functionality and protection that this affords us (e.g. Endpoint Security, Fleet, Integration, etc.)

Earlier in the year when I tried to do this I was running into all kinds of problems getting it set up and traced my issue to the fact that I am running both Kibana & Elasticsearch on the same machine so the communication path never leaves the server. Unfortunately I got pulled off onto something else before I could get it figured out.

Fast forward to present day and I am working on this again and it has added criticality now. Still haven't been able to get this figured out so figured it was time to reach out to the community for an assist.

My stack is running on a Windows box and I am using the latest version of Elasticsearch & Kibana - 7.16.2

Thanks,  
Bill Youngman

---

<div class="post-metadata">

**Author:** ![derekmizak](https://avatars.discourse-cdn.com/v4/letter/d/b2d939/32.png) [@derekmizak](https://discuss.elastic.co/u/derekmizak)\
**Post date:** [December 29, 2021, 5:40pm UTC](https://discuss.elastic.co/t/enabling-ssl-security-between-elasticsearch-kibana-when-both-are-on-the-same-server/293141/2 "2021-12-29T17:40:29Z")

</div>

If you follow this guide [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/configuring-stack-security.html) step by step you will be able to set up and learn how to manage security in Elasticsearch. You start from Minimal Security and go up. All is perfectly explained. If you run in to any problems just ask.

All the best.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [December 29, 2021, 5:48pm UTC](https://discuss.elastic.co/t/enabling-ssl-security-between-elasticsearch-kibana-when-both-are-on-the-same-server/293141/3 "2021-12-29T17:48:47Z")

</div>

Hi @byoungman welcome back...

Here is the docs they derekmizak is referring to

It is a new step by step instruction found [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/configuring-stack-security.html) You should be good if you follow it carefully.

You will probably want to proceed up to the steps [Set up basic security plus HTTPS](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-basic-setup-https.html)

Also I have written a How To [Here](https://github.com/bvader/howtos/tree/master/basic-security-elasticsearch) before that was available you can also take a look ... it is on a Linux OS but all the concepts remain the same.

---

<div class="post-metadata">

**Author:** ![derekmizak](https://avatars.discourse-cdn.com/v4/letter/d/b2d939/32.png) [@derekmizak](https://discuss.elastic.co/u/derekmizak)\
**Post date:** [December 29, 2021, 5:51pm UTC](https://discuss.elastic.co/t/enabling-ssl-security-between-elasticsearch-kibana-when-both-are-on-the-same-server/293141/4 "2021-12-29T17:51:00Z")

</div>

@stephenb ups 🙂 I hate when I forget to add a link or attachment 😉 Thank you

---

<div class="post-metadata">

**Author:** ![byoungman](https://avatars.discourse-cdn.com/v4/letter/b/838e76/32.png) [@byoungman](https://discuss.elastic.co/u/byoungman)\
**Post date:** [December 30, 2021, 3:29pm UTC](https://discuss.elastic.co/t/enabling-ssl-security-between-elasticsearch-kibana-when-both-are-on-the-same-server/293141/5 "2021-12-30T15:29:56Z")

</div>

Good to be back @stephenb.

Followed the steps outlined in the Elastic documentation and the How To that you had written Steve and it worked like a charm I know have basic security with HTTPS going.

Pretty sure that the last time that I attempted this I was way over complicating it and going down too many rabbit holes.

Thanks to both of you for the assist.

Happy New Year,  
Bill

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [December 30, 2021, 3:41pm UTC](https://discuss.elastic.co/t/enabling-ssl-security-between-elasticsearch-kibana-when-both-are-on-the-same-server/293141/6 "2021-12-30T15:41:49Z")

</div>

@byoungman Awesome! and a Happy, Healthy Safe New Year to you as well!

---

<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:** [January 27, 2022, 3:42pm UTC](https://discuss.elastic.co/t/enabling-ssl-security-between-elasticsearch-kibana-when-both-are-on-the-same-server/293141/7 "2022-01-27T15:42:01Z")

</div>

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