# Cannot Create a keystore in elasticsearch 5.6.5

**URL:** <https://discuss.elastic.co/t/cannot-create-a-keystore-in-elasticsearch-5-6-5/112417>\
**Category:** Elasticsearch\
**Created:** [December 19, 2017, 11:22am UTC](https://discuss.elastic.co/t/cannot-create-a-keystore-in-elasticsearch-5-6-5/112417 "2017-12-19T11:22:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![shwan](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@shwan](https://discuss.elastic.co/u/shwan)\
**Post date:** [December 19, 2017, 11:22am UTC](https://discuss.elastic.co/t/cannot-create-a-keystore-in-elasticsearch-5-6-5/112417/1 "2017-12-19T11:22:05Z")

</div>

Hello,  
I'm following the documentation on the official website of elastic. However, it gives me this error:  
ERROR: String value must contain only ASCII  
the steps i'm doing are the following:  
bin/elasticsearch-keystore create  
cat /etc/elasticsearch/elasticsearch.keystore | bin/elasticsearch-keystore add --stdin the.setting.name.to.set  
P.S /etc/elasticsearch/elasticsearch.keystore the created file by the elasticsearch-keystore and its value inside is not ASCII  
"�00=0!0sear+�+�6'�sR{ѣY��#���!Ƹ�K\�hC�`���@�g&�(��M�G"

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 19, 2017, 11:46am UTC](https://discuss.elastic.co/t/cannot-create-a-keystore-in-elasticsearch-5-6-5/112417/2 "2017-12-19T11:46:03Z")

</div>

`cat /etc/elasticsearch/elasticsearch.keystore` is wrong I believe. Why are you doing that?

---

<div class="post-metadata">

**Author:** ![shwan](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@shwan](https://discuss.elastic.co/u/shwan)\
**Post date:** [December 19, 2017, 11:48am UTC](https://discuss.elastic.co/t/cannot-create-a-keystore-in-elasticsearch-5-6-5/112417/3 "2017-12-19T11:48:41Z")

</div>

@dadoonet in the documentation it says  
cat /file/containing/setting/value | bin/elasticsearch-keystore add --stdin the.setting.name.to.set

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 19, 2017, 11:59am UTC](https://discuss.elastic.co/t/cannot-create-a-keystore-in-elasticsearch-5-6-5/112417/4 "2017-12-19T11:59:30Z")

</div>

Does `/etc/elasticsearch/elasticsearch.keystore` contains a value?

---

<div class="post-metadata">

**Author:** ![shwan](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@shwan](https://discuss.elastic.co/u/shwan)\
**Post date:** [December 19, 2017, 12:01pm UTC](https://discuss.elastic.co/t/cannot-create-a-keystore-in-elasticsearch-5-6-5/112417/5 "2017-12-19T12:01:55Z")

</div>

yes something like this  
�00=0!0sear+�+�6'�sR{ѣY��#���!Ƹ�K\�hC�`���@�g&�(��M�G  
generated by the first command

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 19, 2017, 12:52pm UTC](https://discuss.elastic.co/t/cannot-create-a-keystore-in-elasticsearch-5-6-5/112417/6 "2017-12-19T12:52:50Z")

</div>

It's not a value. It's the keystore itself.

What are you trying to do? Which settings you want to add to the keystore?

---

<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:** [January 16, 2018, 12:53pm UTC](https://discuss.elastic.co/t/cannot-create-a-keystore-in-elasticsearch-5-6-5/112417/7 "2018-01-16T12:53:03Z")

</div>

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