as i wanted to implement security in my Cluster, i followed along This Guide - an it all went well until
Step 6. Set the passwords for all built-in users.
When i try to execute the command:
I get the following Error:
Failed to authenticate user 'elastic' against http://X.X.X.X:9200/_security/_authenticate?pretty Possible causes include: * The password for the 'elastic' user has already been changed on this cluster * Your elasticsearch node is running against a different keystore This tool used the keystore at /etc/elasticsearch/elasticsearch.keystore ERROR: Failed to verify bootstrap password
I know that the bootstrap password was set by my predecessor - i also have access to it - but still i don't know what i have to do here..
When i look into the elasticsearch Logs i see the following line:
[2020-03-20T12:49:02,575][INFO ][o.e.x.s.a.AuthenticationService] [Hostname] Authentication of [elastic] was terminated by realm [reserved] - failed to authenticate user [elastic]
The only configuration i have in my elasticsearch.yml file regarding xpack are the following:
xpack.security.enabled: true xpack.security.transport.ssl.enabled: true xpack.security.transport.ssl.verification_mode: certificate xpack.security.transport.ssl.keystore.path: /elkdata/certs/elastic-certificates.p12 xpack.security.transport.ssl.truststore.path: /elkdata/certs/elastic-certificates.p12
Does anyone know what i have to do?
Thanks in advance!