# ERROR: Failed to determine the health of the cluster with elasticsearch-create-enrollment-token

**URL:** https://discuss.elastic.co/t/error-failed-to-determine-the-health-of-the-cluster-with-elasticsearch-create-enrollment-token/297041
**Category:** Elasticsearch
**Tags:** elastic-stack-security
**Created:** [February 12, 2022, 8:04am UTC](https://discuss.elastic.co/t/error-failed-to-determine-the-health-of-the-cluster-with-elasticsearch-create-enrollment-token/297041 "2022-02-12T08:04:09Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![Ismaeel\_Enjreny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ismaeel_enjreny/32/69578_2.png) [@Ismaeel\_Enjreny](https://discuss.elastic.co/u/Ismaeel_Enjreny)
#### Post date: [February 12, 2022, 8:04am UTC](https://discuss.elastic.co/t/error-failed-to-determine-the-health-of-the-cluster-with-elasticsearch-create-enrollment-token/297041/1 "2022-02-12T08:04:09Z")

</div>

I have Elasticsearch cluster on my local machine with enabled HTTPs (2 nodes), all is working fine, I am trying to use the new tool elasticsearch-create-enrollment-token to enroll the third node, but I got the following error

> ERROR: Failed to determine the health of the cluster

when I execute the following command

> elasticsearch-create-enrollment-token -s node -v

How can I determine the root cause of this issue

BTW, I have the following settings for SSL

```auto
# This turns on SSL for the HTTP (Rest) interface
xpack.security.http.ssl.enabled: true

# This configures the keystore to use for SSL on HTTP
xpack.security.http.ssl.keystore.path: certs\http.p12
xpack.security.http.ssl.truststore.path: certs\es.p12
xpack.security.http.ssl.verification_mode: certificate

```

I generated the certificate using the following instructions

> **[Set up basic security for the Elastic Stack plus secured HTTPS traffic |...](https://www.elastic.co/guide/en/elasticsearch/reference/master/security-basic-setup-https.html)**

---

_[View the full topic](https://discuss.elastic.co/t/error-failed-to-determine-the-health-of-the-cluster-with-elasticsearch-create-enrollment-token/297041)._
