# Not a valid logstash keystore

**URL:** <https://discuss.elastic.co/t/not-a-valid-logstash-keystore/376130>\
**Category:** Logstash\
**Created:** [March 19, 2025, 2:40pm UTC](https://discuss.elastic.co/t/not-a-valid-logstash-keystore/376130 "2025-03-19T14:40:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JosephR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/josephr/32/141754_2.png) [@JosephR](https://discuss.elastic.co/u/JosephR)\
**Post date:** [March 19, 2025, 2:40pm UTC](https://discuss.elastic.co/t/not-a-valid-logstash-keystore/376130/1 "2025-03-19T14:40:09Z")

</div>

When I set my keystore using the Elastic steps and add my keys it works fine and will not have any issues listing them or using them for what I need, however as soon as that server or the logstash service restarts I get and error that a keystore was found but it is not a valid keystore: Password is not ASCII.  
The password is kosher as far as being ASCII as well.

using the following steps.  
set +o history  
export LOGSTASH\_KEYSTORE\_PASS=mypassword  
set -o history  
sudo -E /usr/share/logstash/bin/logstash-keystore --path.settings /etc/logstash create

I have added the password in /etc/sysconfig as well.
