Your certificates will be generated inside `tools/out` directory.
### Configuration
Before using Search Guard, you must update the content of `/usr/share/elasticsearch/plugins/search-guard-6/sgconfig/sg_internal_users.yml` file, which define the users to be created and its roles.
You can generate the password hashes with a [online tool](https://8gwifi.org/bccrypt.jsp), for example.
```
admin_elastic:
readonly: true
hash: $2a...
roles:
- admin
kibanaserver:
readonly: true
hash: $2a...
```
### Initialization
When using Search Guard at first time, is required to run a script as certified admin, to create the configuration index.
While running, get into container and run the following commands:
```
cd /usr/share/elasticsearch/plugins/search-guard-6/tools