Cannot Create a keystore in elasticsearch 5.6.5

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
P.S /etc/elasticsearch/elasticsearch.keystore the created file by the elasticsearch-keystore and its value inside is not ASCII

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

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

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

yes something like this
generated by the first command

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?

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