It's hard to give you specific advice without understanding your configuration, but the general cause of the problem is this:
- You have configured a
truststore(or perhapskeystore, but from the error message, I think it's more likely to be atruststore) somewhere in yourelasticsearch.yml - You pust the password for that truststore into the elasticsearch keystore with the
elasticsearch-keystoretool
In the version you are running (6.2), the setup-passwords tool is unable to read SSL passwords from the elasticsearch keystore. It needs them to be in the elasticsearch.yml file.