# Unable to generate a enrollement token with scope level to node ERROR: Failed to determine the health of the cluster. , with exit code 69

**URL:** https://discuss.elastic.co/t/unable-to-generate-a-enrollement-token-with-scope-level-to-node-error-failed-to-determine-the-health-of-the-cluster-with-exit-code-69/361887
**Category:** Elasticsearch
**Created:** [June 22, 2024, 4:28pm UTC](https://discuss.elastic.co/t/unable-to-generate-a-enrollement-token-with-scope-level-to-node-error-failed-to-determine-the-health-of-the-cluster-with-exit-code-69/361887 "2024-06-22T16:28:55Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)
#### Post date: [June 23, 2024, 12:26pm UTC](https://discuss.elastic.co/t/unable-to-generate-a-enrollement-token-with-scope-level-to-node-error-failed-to-determine-the-health-of-the-cluster-with-exit-code-69/361887/2 "2024-06-23T12:26:32Z")

</div>

This

> [@arunraj](#):
>
> ```auto
> curl --location 'http://localhost:9200/_cluster/health?pretty=null'
> 
> ```

and this

> [@arunraj](#):
>
> ```auto
> xpack.security.http.ssl:
> enabled: true
> 
> ```

don't match up.

You shouldn't be able to access your cluster via `http` (non-SSL) if your node has SSL enabled.

---

_[View the full topic](https://discuss.elastic.co/t/unable-to-generate-a-enrollement-token-with-scope-level-to-node-error-failed-to-determine-the-health-of-the-cluster-with-exit-code-69/361887)._
