# Elastic and Kibana Keystore - upgrading

**URL:** <https://discuss.elastic.co/t/elastic-and-kibana-keystore-upgrading/233897>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [May 22, 2020, 11:52am UTC](https://discuss.elastic.co/t/elastic-and-kibana-keystore-upgrading/233897 "2020-05-22T11:52:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vladtepes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vladtepes/32/64982_2.png) [@vladtepes](https://discuss.elastic.co/u/vladtepes)\
**Post date:** [May 22, 2020, 11:52am UTC](https://discuss.elastic.co/t/elastic-and-kibana-keystore-upgrading/233897/1 "2020-05-22T11:52:23Z")

</div>

I am looking at securing some string in the elasticsearch.yml and kibana.yml. From what I read in [this doc](https://www.elastic.co/guide/en/elasticsearch/reference/6.3/secure-settings.html) it is possible to create a keystore and then use it to store passwords securely. (for example elasticsearch.password:XXXYYYZZZ) A similar concept is applied to Kibana.  
What I am interested in is once a keystore is created, does it store something locally on the file system which should not be deleted when reinstalling the elasticsearch/kibana node to use a newer version? If yes, what should be retained? If not, does this mean each time we need to create a new keystore and add the settings? What happens with the keystore settings we inserted with the previous version?

Thank you in advance!

OS: Windows Server 2016  
Version: 7.7

---

<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:** [May 25, 2020, 7:25am UTC](https://discuss.elastic.co/t/elastic-and-kibana-keystore-upgrading/233897/2 "2020-05-25T07:25:50Z")

</div>

> [@vladtepes](#):
>
> What I am interested in is once a keystore is created, does it store something locally on the file system which should not be deleted when reinstalling the elasticsearch/kibana node to use a newer version?

Yes, there is. For elasticsearch , it's the `elasticsearch.keystore` file.

---

<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:** [June 22, 2020, 7:25am UTC](https://discuss.elastic.co/t/elastic-and-kibana-keystore-upgrading/233897/3 "2020-06-22T07:25:58Z")

</div>

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