# Self-signed certificate expiration date and the ES cluster transport layer

**URL:** https://discuss.elastic.co/t/self-signed-certificate-expiration-date-and-the-es-cluster-transport-layer/221784
**Category:** Elasticsearch
**Created:** [March 2, 2020, 11:26pm UTC](https://discuss.elastic.co/t/self-signed-certificate-expiration-date-and-the-es-cluster-transport-layer/221784 "2020-03-02T23:26:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Darrell\_Lowrance](https://avatars.discourse-cdn.com/v4/letter/d/ea666f/32.png) [@Darrell\_Lowrance](https://discuss.elastic.co/u/Darrell_Lowrance)
#### Post date: [March 2, 2020, 11:26pm UTC](https://discuss.elastic.co/t/self-signed-certificate-expiration-date-and-the-es-cluster-transport-layer/221784/1 "2020-03-02T23:26:42Z")

</div>

Current ELK cluster version: v7.3

I'm currently using a self-signed cert generated using the elasticsearch-certutil tool. By default, the CA and Certificate expire in 3 years. I plan to use the self-signed certs in Prod.

What can I expect to happen when the CA and/or cert expires? Will my cluster fail? Is it necessary to generate and deploy new certs?

By the way, as a test, I generated a new cert using the original CA cert. I set the expire date for 1 day. I deployed it my transport layer for my existing cluster. After 3 days, the cluster still runs fine. Note: The CA file doesn't expire until 2022.

Thanks In Advance.

Additional note: I'm posting this question as a follow up to my previous question at [Problem attempting to migrate from self-signed SSL cert to a CA issued SSL cert](https://discuss.elastic.co/t/problem-attempting-to-migrate-from-self-signed-ssl-cert-to-a-ca-issued-ssl-cert/195575)

---

<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: [March 3, 2020, 12:12am UTC](https://discuss.elastic.co/t/self-signed-certificate-expiration-date-and-the-es-cluster-transport-layer/221784/2 "2020-03-03T00:12:34Z")

</div>

**Note to readers** : This answer is specifically about certificates on the transport layer (`xpack.security.transport.ssl.*`). It is not necessarily applicable to other certificates in Elasticsearch.

> [@Darrell\_Lowrance](#):
>
> What can I expect to happen when the CA and/or cert expires? Will my cluster fail? Is it necessary to generate and deploy new certs?

Your cluster will not be able to establish new connections between nodes. Effectively you cluster will fail, but at a future time. It could happen due to a network issue, or because you need to restart a node for some reason. You will need to deploy new certificates.  
It is possible (with the right configuration) to deploy new certs without needing to restart.

> [@](#):
>
> After 3 days, the cluster still runs fine.

I suspect you didn't restart any nodes, and your network was stable during that time. If you try restarting a node you should find that it cannot connect to the other nodes in the cluster.

---

<div class="post-metadata">

### Author: ![Darrell\_Lowrance](https://avatars.discourse-cdn.com/v4/letter/d/ea666f/32.png) [@Darrell\_Lowrance](https://discuss.elastic.co/u/Darrell_Lowrance)
#### Post date: [March 3, 2020, 4:38pm UTC](https://discuss.elastic.co/t/self-signed-certificate-expiration-date-and-the-es-cluster-transport-layer/221784/3 "2020-03-03T16:38:15Z")

</div>

Thanks for the quick reply. Actually, I had restarted 1 node and it rejoined with no problems.

For what it's worth, I just now reconfirmed all 3 nodes were using the same self-signed expired cert on the transport layer. I rebooted all 3 nodes. All nodes rejoined the cluster. Cluster is now green.

Once again, the CA file I used to generate the cert doesn't expire until 2022. Not sure if that makes difference or not.

To be safe, we will make plans to replace the expired transport cert every 3 years.

Thanks!

---

<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: [March 31, 2020, 4:38pm UTC](https://discuss.elastic.co/t/self-signed-certificate-expiration-date-and-the-es-cluster-transport-layer/221784/4 "2020-03-31T16:38:25Z")

</div>

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