# How to put password in elasticsearch keystore without using bin\\elasticsearch-keystore add

**URL:** <https://discuss.elastic.co/t/how-to-put-password-in-elasticsearch-keystore-without-using-bin-elasticsearch-keystore-add/255008>\
**Category:** Elasticsearch\
**Created:** [November 11, 2020, 6:09am UTC](https://discuss.elastic.co/t/how-to-put-password-in-elasticsearch-keystore-without-using-bin-elasticsearch-keystore-add/255008 "2020-11-11T06:09:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon17386273](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@anon17386273](https://discuss.elastic.co/u/anon17386273)\
**Post date:** [November 11, 2020, 6:09am UTC](https://discuss.elastic.co/t/how-to-put-password-in-elasticsearch-keystore-without-using-bin-elasticsearch-keystore-add/255008/1 "2020-11-11T06:09:16Z")

</div>

Currently my private key, public cert and signed cert are done using openssl  
How do I put password in elasticsearch keystore without using bin\elasticsearch-keystore add?  
It appears that the bin\elasticsearch-keystore will create a seperate keystore on its own

any help is appreciated!

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [November 17, 2020, 5:10am UTC](https://discuss.elastic.co/t/how-to-put-password-in-elasticsearch-keystore-without-using-bin-elasticsearch-keystore-add/255008/2 "2020-11-17T05:10:47Z")

</div>

The elasticsearch-keystore command is a tool for managing the Elasticsearch keystore file which is a way of configuring secret values for Elasticsearch to use.

It has nothing to do with private keys for SSL.

Elasticsearch does not provide a tool that can add a password to a private key, but openssl can do that for you.

---

<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:** [December 15, 2020, 5:10am UTC](https://discuss.elastic.co/t/how-to-put-password-in-elasticsearch-keystore-without-using-bin-elasticsearch-keystore-add/255008/3 "2020-12-15T05:10:59Z")

</div>

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