# Unable to run set-password in 6.x

**URL:** <https://discuss.elastic.co/t/unable-to-run-set-password-in-6-x/117382>\
**Category:** Elasticsearch\
**Created:** [January 28, 2018, 9:53pm UTC](https://discuss.elastic.co/t/unable-to-run-set-password-in-6-x/117382 "2018-01-28T21:53:44Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [January 30, 2018, 2:42am UTC](https://discuss.elastic.co/t/unable-to-run-set-password-in-6-x/117382/4 "2018-01-30T02:42:07Z")

</div>

Support is definitely the best option here, but in order to make as much information available online here's a few pointers:

- Generally I would recommend running setup-passwords before configuring TLS. You don't have to do that, but when you're starting out for the very first time, I think that the most straight forward path is the order below. It does require starting and stopping you node(s) multiple times, and changing configuration as you go, so it's not suitable for every environment (which is why it's not the instructions in the docs) but if you want a path where you do 1 step, verify it worked, and then do the next step, this is the way to go:

- We have a trouble shooting guide for setup-passwords. It needs a little bit more curating, but it does describe your most recent issue: [https://www.elastic.co/guide/en/x-pack/current/trb-security-setup.html](https://www.elastic.co/guide/en/x-pack/current/trb-security-setup.html)

- The challenge with setup-passwords is that it acts as a client of the ES HTTP API, but Elasticsearch is not normally a consumer of its own API. So you can have a perfectly configured ES cluster, but it doesn't know how to talk to itself (because it normally doesn't need to). That usually becomes a problem when SSL/TLS is involved because the steps you need to do to make Elasticsearch work as an HTTP server with TLS are not the same as what you need to make a client talk to Elasticsearch over HTTPS.

- In this case, I think you just want to add the following to the `elasticsearch.yml` for each node.

---

_[View the full topic](https://discuss.elastic.co/t/unable-to-run-set-password-in-6-x/117382)._
