Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Commit 674cea7

Browse files
smuteljmlrt
andauthored
Improve the documentation for TLS (#728)
Co-authored-by: Julien Mailleret <8582351+jmlrt@users.noreply.github.com>
1 parent ca39bf1 commit 674cea7

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

docs/ssl-tls-setup.md

+27-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ $ bin/elasticsearch-certutil cert --ca ./my-ca.p12 --out ./my-keystore.p12 --pas
6868
xpack.security.authc.realms.file.file1.order: 0
6969
xpack.security.authc.realms.native.native1.order: 1
7070
es_heap_size: 1g
71-
es_api_basic_auth_username: elastic
72-
es_api_basic_auth_password: changeme
71+
es_api_basic_auth_username: "elastic" # This is the default user created by the installation of elasticsearch
72+
es_api_basic_auth_password: "changeme" # This is the default password created by the installation of elasticsearch
7373
es_enable_http_ssl: true
7474
es_enable_transport_ssl: true
7575
es_ssl_keystore: "files/certs/my-keystore.p12"
@@ -78,3 +78,28 @@ $ bin/elasticsearch-certutil cert --ca ./my-ca.p12 --out ./my-keystore.p12 --pas
7878
es_ssl_truststore_password: "truststore_password"
7979
es_validate_certs: no
8080
```
81+
82+
## Changing the default password of elastic user
83+
84+
To change the default password of user elastic:
85+
86+
* Add this line to your playbook:
87+
88+
```
89+
vars:
90+
es_api_basic_auth_username: "elastic"
91+
es_api_basic_auth_password: "changeme"
92+
es_users:
93+
native:
94+
elastic:
95+
password: "<new password>"
96+
```
97+
98+
* Deploy your playbook
99+
* Update your playbook with:
100+
101+
```
102+
vars:
103+
es_api_basic_auth_username: "elastic"
104+
es_api_basic_auth_password: "<new password>"
105+
```

0 commit comments

Comments
 (0)