# Create ssl certs and place them inside elasticsearch yml

**URL:** <https://discuss.elastic.co/t/create-ssl-certs-and-place-them-inside-elasticsearch-yml/305204>\
**Category:** Elasticsearch\
**Created:** [May 19, 2022, 2:50pm UTC](https://discuss.elastic.co/t/create-ssl-certs-and-place-them-inside-elasticsearch-yml/305204 "2022-05-19T14:50:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikos\_Kostis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikos_kostis/32/105580_2.png) [@Nikos\_Kostis](https://discuss.elastic.co/u/Nikos_Kostis)\
**Post date:** [May 19, 2022, 2:50pm UTC](https://discuss.elastic.co/t/create-ssl-certs-and-place-them-inside-elasticsearch-yml/305204/1 "2022-05-19T14:50:52Z")

</div>

Hi

I have created an es cluster inside an existing k8s cluster.  
Cluster is up but when i try login initially to the page of kibana it asks for the "enrolment token" that i have to create with ... --scope kibana.  
For to do that i have to enable tls ssl xpac. I can then get to the es pod to create it.

But if i restart es to get the changes, all my additions are lost.  
Plus i need to do it in all 3 pods of es.  
Is there a solution to pass all these to the statefull yaml of es??

Plus the fact that if i try to select "Configure Manually" I cannot see to find with is the address of my Elasticsearch host since its all pods in aks.  
Do i have to declare them in the dns or something for kibana ui to be able to connect them?

Can you direct me somewhere?

---

<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:** [June 16, 2022, 2:51pm UTC](https://discuss.elastic.co/t/create-ssl-certs-and-place-them-inside-elasticsearch-yml/305204/2 "2022-06-16T14:51:14Z")

</div>

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