I have installed the elasticsearch and configure the all certificated as mentioned in document but when i tried to generate a token it give the error. However i have already added the Keystore by using the command
'./bin/elasticsearch-keystore add xpack.security.http.ssl.keystore.secure_password'
elasticsearch is running fine but its just give the error while i tried to create a token using command
bin/elasticsearch-create-enrollment-token -s kibana
Here is the my elasticsearch.yml
discovery.seed_hosts: ["127.0.0.1", "[::1]"]
Please let me know how can i fix this?