# Elasticsearch can't setup password

**URL:** <https://discuss.elastic.co/t/elasticsearch-cant-setup-password/197814>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [September 3, 2019, 10:11am UTC](https://discuss.elastic.co/t/elasticsearch-cant-setup-password/197814 "2019-09-03T10:11:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![111202](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111202/32/53488_2.png) [@111202](https://discuss.elastic.co/u/111202)\
**Post date:** [September 3, 2019, 10:11am UTC](https://discuss.elastic.co/t/elasticsearch-cant-setup-password/197814/1 "2019-09-03T10:11:14Z")

</div>

Hello, I'm newbie for elasticsearch7.3

I got a problem ,

when I setting xpack SSL for my es service

it is running ok,

I can connect with my browser then show account/password alert,

But when I wanna use **elasticsearch-setup-passwords**

it always show error to me,

```
> SSL connection to https://192.168.31.102:9200/_security/_authenticate?pretty failed: readHandshakeRecord
> Please check the elasticsearch SSL settings under xpack.security.http.ssl.
> 
> ERROR: Failed to establish SSL connection to elasticsearch at https://192.168.31.102:9200/_security/_authenticate?pretty.

```

and sometimes show

> ```
> Connection failure to: https://192.168.31.102:9200/_security/user/apm_system/_password?pretty failed: Read timed out
> 
> ERROR: Failed to set password for user [apm_system].
> 
> ```

and es log show

> security index does not exist

my config link [https://pastebin.com/zf8nZZs3](https://pastebin.com/zf8nZZs3)

Who can help me solve this problem

update:

I have try to use -u when use

> elasticsearch-setup-passwords interactive -u "[https://elastic102:9201](https://elastic102:9201)"

results was same with none use " -u "

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [September 6, 2019, 2:32pm UTC](https://discuss.elastic.co/t/elasticsearch-cant-setup-password/197814/2 "2019-09-06T14:32:25Z")

</div>

Please share your elasticsearch.yml here, the pastebin you shared above has already been deleted. Once you do that, we would be able to give you some feedback and/or suggestions

Also please share the whole output you get from `elasticsearch-setup-passwords` , not just part of it.

> [@111202](#):
>
> and es log show
> 
> > security index does not exist

It says more than that, please don't pick specific phrases from the logs, share the exact relevant lines.

---

<div class="post-metadata">

**Author:** ![111202](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111202/32/53488_2.png) [@111202](https://discuss.elastic.co/u/111202)\
**Post date:** [September 20, 2019, 6:22am UTC](https://discuss.elastic.co/t/elasticsearch-cant-setup-password/197814/3 "2019-09-20T06:22:53Z")

</div>

Thank you,

I fixed this issue already,

I just use Kibana Management Console to start basic mode without SSL

---

<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:** [October 18, 2019, 6:22am UTC](https://discuss.elastic.co/t/elasticsearch-cant-setup-password/197814/4 "2019-10-18T06:22:53Z")

</div>

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