# How to generate the enrollment-token for another node with ssl?

**URL:** https://discuss.elastic.co/t/how-to-generate-the-enrollment-token-for-another-node-with-ssl/336574
**Category:** Kibana
**Tags:** elastic-stack-security
**Created:** [June 21, 2023, 12:13pm UTC](https://discuss.elastic.co/t/how-to-generate-the-enrollment-token-for-another-node-with-ssl/336574 "2023-06-21T12:13:36Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![merson](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@merson](https://discuss.elastic.co/u/merson)
#### Post date: [June 21, 2023, 12:13pm UTC](https://discuss.elastic.co/t/how-to-generate-the-enrollment-token-for-another-node-with-ssl/336574/1 "2023-06-21T12:13:36Z")

</div>

Unable to create enrollment token for scope[node]

ERROR: Unable to create an enrollment token. Elasticsearch node HTTP layer ssl configuration Keystore doesn't contain any private entries where the associated certificate is a CA certificate

---

<div class="post-metadata">

### Author: ![Yang\_Wang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yang_wang/32/48857_2.png) [@Yang\_Wang](https://discuss.elastic.co/u/Yang_Wang)
#### Post date: [June 22, 2023, 3:36am UTC](https://discuss.elastic.co/t/how-to-generate-the-enrollment-token-for-another-node-with-ssl/336574/2 "2023-06-22T03:36:59Z")

</div>

This is a known issue see [Generating enrolment token for Kibana should not require the CA key · Issue #89017 · elastic/elasticsearch · GitHub](https://github.com/elastic/elasticsearch/issues/89017)

---

<div class="post-metadata">

### Author: ![merson](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@merson](https://discuss.elastic.co/u/merson)
#### Post date: [June 22, 2023, 6:17am UTC](https://discuss.elastic.co/t/how-to-generate-the-enrollment-token-for-another-node-with-ssl/336574/3 "2023-06-22T06:17:55Z")

</div>

Thank you.

Let me check.

---

<div class="post-metadata">

### Author: ![merson](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@merson](https://discuss.elastic.co/u/merson)
#### Post date: [June 26, 2023, 12:56pm UTC](https://discuss.elastic.co/t/how-to-generate-the-enrollment-token-for-another-node-with-ssl/336574/4 "2023-06-26T12:56:24Z")

</div>

but am facing this issue while generate a new node for elasticsearch-clustering

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [June 26, 2023, 1:29pm UTC](https://discuss.elastic.co/t/how-to-generate-the-enrollment-token-for-another-node-with-ssl/336574/5 "2023-06-26T13:29:28Z")

</div>

Hi @merson Welcome to the community.

Perhaps take a look at this.

> [@Elasticsearch-create-enrollment-token is not possible without a keystore ( aka with PEM certificates)](https://discuss.elastic.co/t/elasticsearch-create-enrollment-token-is-not-possible-without-a-keystore-aka-with-pem-certificates/336136/2):
>
> Hi @DavidDPD Welcome to the community, and apologies for the frustrating experience. Yes a bit frustrating and probably could be documented better. I think perhaps there is a fundamental "disconnect" At least this is how I understand it.... When you want to use your own certs etc, you are no longer using security auto configuration and thus when you use your own certs you should no longer be trying to "enroll" another node in the cluster using an enrollment token... the elasticsearch-create-…

In short if you set up your own certs (i.e. did not use security auto-configuration) you just need to manually setup your other nodes to join the clusters

---

<div class="post-metadata">

### Author: ![Yang\_Wang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yang_wang/32/48857_2.png) [@Yang\_Wang](https://discuss.elastic.co/u/Yang_Wang)
#### Post date: [June 27, 2023, 12:42am UTC](https://discuss.elastic.co/t/how-to-generate-the-enrollment-token-for-another-node-with-ssl/336574/6 "2023-06-27T00:42:50Z")

</div>

> [@merson](#):
>
> but am facing this issue while generate a new node for elasticsearch-clustering

The underlying cause is the same for node or kibana enrollment.

---

<div class="post-metadata">

### Author: ![merson](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@merson](https://discuss.elastic.co/u/merson)
#### Post date: [June 27, 2023, 7:38am UTC](https://discuss.elastic.co/t/how-to-generate-the-enrollment-token-for-another-node-with-ssl/336574/7 "2023-06-27T07:38:20Z")

</div>

Thank you .  
@stephenb

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 25, 2023, 7:39am UTC](https://discuss.elastic.co/t/how-to-generate-the-enrollment-token-for-another-node-with-ssl/336574/8 "2023-07-25T07:39:10Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
