# Elasticsearch-setup-passwords

**URL:** <https://discuss.elastic.co/t/elasticsearch-setup-passwords/152883>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [October 17, 2018, 5:08pm UTC](https://discuss.elastic.co/t/elasticsearch-setup-passwords/152883 "2018-10-17T17:08:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmadoori](https://avatars.discourse-cdn.com/v4/letter/r/47e85d/32.png) [@rmadoori](https://discuss.elastic.co/u/rmadoori)\
**Post date:** [October 17, 2018, 5:08pm UTC](https://discuss.elastic.co/t/elasticsearch-setup-passwords/152883/1 "2018-10-17T17:08:04Z")

</div>

Hi,

Is there alternative for elasticsearch-setup-passwords .  
cause this looks like a manual process and passwords are plain text.  
Is there any option to generate keys and we can use the keys for kibana and logstash to use to connect to elasticsearch

Thanks  
Rajesh

---

<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:** [October 17, 2018, 5:19pm UTC](https://discuss.elastic.co/t/elasticsearch-setup-passwords/152883/2 "2018-10-17T17:19:51Z")

</div>

> [@rmadoori](#):
>
> cause this looks like a manual process

@TimV has written up [how you can automate setting the passwords](https://discuss.elastic.co/t/how-to-set-passwords-for-built-in-users-in-batch-mode/119655/6)

> [@rmadoori](#):
>
> are plain text.

Not necessarily, you can check out the Logstash's [secrets keystore](https://www.elastic.co/guide/en/logstash/current/keystore.html) for example.

> [@rmadoori](#):
>
> Is there any option to generate keys and we can use the keys for kibana and logstash to use to connect to elasticsearch

Yes, see [PKI Client authentication](https://www.elastic.co/guide/en/elastic-stack-overview/current/pki-realm.html) for Elasticsearch

---

<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:** [November 14, 2018, 5:28pm UTC](https://discuss.elastic.co/t/elasticsearch-setup-passwords/152883/3 "2018-11-14T17:28:44Z")

</div>

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