# Unable to form cluster after enabling TLS in elasticsearch

**URL:** <https://discuss.elastic.co/t/unable-to-form-cluster-after-enabling-tls-in-elasticsearch/233669>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [May 21, 2020, 5:21am UTC](https://discuss.elastic.co/t/unable-to-form-cluster-after-enabling-tls-in-elasticsearch/233669 "2020-05-21T05:21:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [May 21, 2020, 5:39am UTC](https://discuss.elastic.co/t/unable-to-form-cluster-after-enabling-tls-in-elasticsearch/233669/2 "2020-05-21T05:39:38Z")

</div>

Hi there,

As we said in [Unable to enable https and internode communication in 2 node cluster](https://discuss.elastic.co/t/unable-to-enable-https-and-internode-communication-in-2-node-cluster/232306), you need to share the whole configuration and details about how you generated the certificates and keys you are using. As the message says, your tls transport configuration is wrong as the nodes do not trust the certificates that other nodes present for TLS but unless you show us your config we cant suggest you how to fix it.

Also, the diagnostic error messages are helpful only if we can see the message so please dont mask hostnames if you dont have to.

---

_[View the full topic](https://discuss.elastic.co/t/unable-to-form-cluster-after-enabling-tls-in-elasticsearch/233669)._
