# Elasticsearch.keystore location

**URL:** <https://discuss.elastic.co/t/elasticsearch-keystore-location/248575>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [September 14, 2020, 6:43pm UTC](https://discuss.elastic.co/t/elasticsearch-keystore-location/248575 "2020-09-14T18:43:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben-charles](https://avatars.discourse-cdn.com/v4/letter/b/9f8e36/32.png) [@ben-charles](https://discuss.elastic.co/u/ben-charles)\
**Post date:** [September 14, 2020, 6:43pm UTC](https://discuss.elastic.co/t/elasticsearch-keystore-location/248575/1 "2020-09-14T18:43:51Z")

</div>

Is it possible to configure where elasticsearch.keystore is created? We would like to have it in a separate directory from the config/ directory.

---

<div class="post-metadata">

**Author:** ![madduck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/madduck/32/63444_2.png) [@madduck](https://discuss.elastic.co/u/madduck)\
**Post date:** [September 15, 2020, 11:47am UTC](https://discuss.elastic.co/t/elasticsearch-keystore-location/248575/2 "2020-09-15T11:47:49Z")

</div>

I have the same question.  
I'm currently running Elasticsearch in a dockerized environment and would like to store the keystores as persistent data outside of the container however I have found no information on how this would work with Elastic internal commands/settings.

---

<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:** [October 13, 2020, 11:47am UTC](https://discuss.elastic.co/t/elasticsearch-keystore-location/248575/3 "2020-10-13T11:47:57Z")

</div>

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