# Securt in kibana

**URL:** <https://discuss.elastic.co/t/securt-in-kibana/218468>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [February 9, 2020, 12:54pm UTC](https://discuss.elastic.co/t/securt-in-kibana/218468 "2020-02-09T12:54:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andreas\_Bakopoulos1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andreas_bakopoulos1/32/47196_2.png) [@Andreas\_Bakopoulos1](https://discuss.elastic.co/u/Andreas_Bakopoulos1)\
**Post date:** [February 9, 2020, 12:54pm UTC](https://discuss.elastic.co/t/securt-in-kibana/218468/1 "2020-02-09T12:54:20Z")

</div>

Hello,

I am trying to setup the basic authentication in kibana but it seems that something is wrong.

More specifically, I have six elasticsearch notes and the version of the elastic is the 7.2

Following the recommended configuration [https://www.elastic.co/guide/en/kibana/7.2/using-kibana-with-security.html](https://www.elastic.co/guide/en/kibana/7.2/using-kibana-with-security.html) I performed the below steps on each note :

1. I have been added the bellow lines to the elasticSearch.yml  
xpack.security.enabled: true  
xpack.security.transport.ssl.enabled: true
2. I run the command bin/elasticsearch-setup-passwords interactive and I set the same passwords in all notes.

Then I tried to access the elasticsearch notes in the port :9200 and the authentication popup displayed. I insert the elastic username and password that are inserted in the above-mentioned steps but I cannot log in.

Is there something that is not correct in the procedure that I followed?  
Could you please help me?

Best regards,  
Andreas

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [February 10, 2020, 6:16am UTC](https://discuss.elastic.co/t/securt-in-kibana/218468/2 "2020-02-10T06:16:07Z")

</div>

Καλημέρα Ανδρέα,

In order to setup your elasticsearch cluster for security ( so that you can then enforce authenticated access to kibana) you should follow the steps outlined in

> **[Tutorial: Encrypting communications | Elasticsearch Guide \[8.11\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/encrypting-internode-communications.html)**

> **[Tutorial: Getting started with security | Elasticsearch Guide \[8.11\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-getting-started.html)**

Start from there and once you have followed all relevant steps, we'd be happy to assist further if you have specific issues.

> [@Andreas\_Bakopoulos1](#):
>
> I have been added the bellow lines to the elasticSearch.yml  
> xpack.security.enabled: true  
> xpack.security.transport.ssl.enabled: true

As you will see in the docs above, this is not enough. You can't just configure elasticsearch for TLS _without_ actually specifying the keys and certificates to be used.

---

<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 9, 2020, 6:16am UTC](https://discuss.elastic.co/t/securt-in-kibana/218468/3 "2020-03-09T06:16:12Z")

</div>

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