# Securing self-managed ELK (Keystore file does not exist)

**URL:** <https://discuss.elastic.co/t/securing-self-managed-elk-keystore-file-does-not-exist/366169>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [September 6, 2024, 4:16pm UTC](https://discuss.elastic.co/t/securing-self-managed-elk-keystore-file-does-not-exist/366169 "2024-09-06T16:16:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![raiden](https://avatars.discourse-cdn.com/v4/letter/r/8dc957/32.png) [@raiden](https://discuss.elastic.co/u/raiden)\
**Post date:** [September 6, 2024, 4:16pm UTC](https://discuss.elastic.co/t/securing-self-managed-elk-keystore-file-does-not-exist/366169/1 "2024-09-06T16:16:06Z")

</div>

Hi new to the forum. I'm trying to implement a self-managed Elastic Stack using this guide:

> **[Tutorial 2: Securing a self-managed Elastic Stack | Elastic Installation and...](https://www.elastic.co/guide/en/elastic-stack/current/install-stack-demo-secure.html)**

But when i arrive at Step 1 part 6, I am able to run the command and receive a "Certificate was added to the keystore" but when i run the next command: "keytool -keystore elastic-stack-ca.p12 -list", I'm met with: "keytool error: java.lang.Exception: Keystore file does not exist: elastic-stack-ca.p12". I get the same message if i list the entire filepath "/etc/elasticsearch/certs/elastic-stack-ca.p12".

 ![forum post - keytool error](https://us1.discourse-cdn.com/elastic/original/3X/8/c/8c2390238cefdf6ac4a38849285c4b69c14bc7a4.png)

An ls command to the directory does show the elastic-stack-ca.p12 file so I'm not sure where I'm going wrong. Any advice would be greatly appreciated.

Edit: Added Screenshot snippet

---

<div class="post-metadata">

**Author:** ![MichaelM88](https://avatars.discourse-cdn.com/v4/letter/m/9d8465/32.png) [@MichaelM88](https://discuss.elastic.co/u/MichaelM88)\
**Post date:** [October 11, 2024, 6:29pm UTC](https://discuss.elastic.co/t/securing-self-managed-elk-keystore-file-does-not-exist/366169/2 "2024-10-11T18:29:25Z")

</div>

Hi Norberto,

I was wondering if you found a solution to this. I'm currently stuck, getting the error as you, following elastic's tutorial.

---

<div class="post-metadata">

**Author:** ![vitac.ch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vitac.ch/32/139288_2.png) [@vitac.ch](https://discuss.elastic.co/u/vitac.ch)\
**Post date:** [November 18, 2024, 6:09am UTC](https://discuss.elastic.co/t/securing-self-managed-elk-keystore-file-does-not-exist/366169/3 "2024-11-18T06:09:06Z")

</div>

Hi, did you manage to solve this problem?
