# Unable to reset default password

**URL:** <https://discuss.elastic.co/t/unable-to-reset-default-password/323210>\
**Category:** Kibana\
**Tags:** elastic-stack-security\
**Created:** [January 16, 2023, 3:13am UTC](https://discuss.elastic.co/t/unable-to-reset-default-password/323210 "2023-01-16T03:13:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuvrajbset](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuvrajbset/32/100128_2.png) [@yuvrajbset](https://discuss.elastic.co/u/yuvrajbset)\
**Post date:** [January 16, 2023, 3:13am UTC](https://discuss.elastic.co/t/unable-to-reset-default-password/323210/1 "2023-01-16T03:13:43Z")

</div>

Hello ES Team,

I am unable to reset my Elasticsearch password. Please find the screenshot below.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/9/095d7bc7d9d3f346cd88124325b4340b9d573861.png)  
Please help me out with this.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [January 16, 2023, 3:58am UTC](https://discuss.elastic.co/t/unable-to-reset-default-password/323210/2 "2023-01-16T03:58:15Z")

</div>

Hi @yuvrajbset Please do not post screenshot of text.. it is hard to read and debug.

> **[elasticsearch-reset-password | Elasticsearch Guide \[8.11\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/reset-password.html#_synopsis_7)**

There error certificate subject name mismatch you need to use the `--url` parameter with https and one of the names specified in the DNS like your laptop name.

> --url  
> Specifies the base URL (hostname and port of the local node) that the tool uses to submit API requests to Elasticsearch. The default value is determined from the settings in your elasticsearch.yml file. If xpack.security.http.ssl.enabled is set to true, you must specify an HTTPS URL.

So perhaps

`bin/elasticsearch-reset-password -u elastic --url "https://THELAPTOP_NAME:9200"`

Or `127.0.0.1`

I could not cut and paste the laptop name because of the screenshot:)

---

<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:** [February 13, 2023, 3:58am UTC](https://discuss.elastic.co/t/unable-to-reset-default-password/323210/3 "2023-02-13T03:58:48Z")

</div>

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