# 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:** 1\
**Showing post:** 2

<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

---

_[View the full topic](https://discuss.elastic.co/t/elasticsearch-setup-passwords/152883)._
