# How to encrypt clear text password in ELK Config files - Shield

**URL:** <https://discuss.elastic.co/t/how-to-encrypt-clear-text-password-in-elk-config-files-shield/54707>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [July 5, 2016, 9:04am UTC](https://discuss.elastic.co/t/how-to-encrypt-clear-text-password-in-elk-config-files-shield/54707 "2016-07-05T09:04:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pvignesh92](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@pvignesh92](https://discuss.elastic.co/u/pvignesh92)\
**Post date:** [July 5, 2016, 9:04am UTC](https://discuss.elastic.co/t/how-to-encrypt-clear-text-password-in-elk-config-files-shield/54707/1 "2016-07-05T09:04:41Z")

</div>

Hi team, I have installed Shield and enabled SSL by following the documentation. We could see that the passwords are in clear text as below in the configuration files which can be a concern.

**Elasticsearch.yml**

shield.ssl.keystore.password: password  
shield.ssl.keystore.key\_password: password

**Output filter of logstash**  
output{  
elasticsearch {  
hosts =\> "[https://elasticserach.com:9200](https://elasticserach.com:9200)"  
index =\> "index-%{+YYYY.MM.dd}"  
ssl =\> true  
cacert =\> '/home/cacert.pem'  
user =\> "logstash-admin"  
password =\> "password"  
}  
}

Kibana also has the elasticsearch user and password in clear text. Is there any way to encrypt them? Pls suggest

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 5, 2016, 10:52am UTC](https://discuss.elastic.co/t/how-to-encrypt-clear-text-password-in-elk-config-files-shield/54707/2 "2016-07-05T10:52:33Z")

</div>

There currently is not, the best option is to restrict read access to the files on the filesystem.

---

<div class="post-metadata">

**Author:** ![pvignesh92](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@pvignesh92](https://discuss.elastic.co/u/pvignesh92)\
**Post date:** [July 5, 2016, 11:25am UTC](https://discuss.elastic.co/t/how-to-encrypt-clear-text-password-in-elk-config-files-shield/54707/3 "2016-07-05T11:25:14Z")

</div>

Thank you for the clarification.

---

<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:** [July 6, 2017, 1:43pm UTC](https://discuss.elastic.co/t/how-to-encrypt-clear-text-password-in-elk-config-files-shield/54707/4 "2017-07-06T13:43:03Z")

</div>


