Our cluster's CA and node certificates have expired. We updated them by following these steps: Expired ca.crt/nodes certificates - how to renew such certificates? - Elastic Stack / Elasticsearch - Discuss the Elastic Stack
Restarted the docker containers, and now when launched, the following logs appear:
{"type": "server", "timestamp": "2024-10-14T13:50:15,373Z", "level": "ERROR", "component": "o.e.x.s.a.e.NativeUsersStore", "cluster.name": "es-itglobal-cluster", "node.name": "es02-ds1", "message": "security index is unavailable. short circuiting retrieval of user [user_name]" }
{"type": "server", "timestamp": "2024-10-14T13:50:15,762Z", "level": "WARN", "component": "o.e.c.c.ClusterFormationFailureHelper", "cluster.name": "es-itglobal-cluster", "node.name": "es02-ds1", "message": "master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and [cluster.initial_master_nodes] is empty on this node: have discovered [{es02-ds1}{...}{IP}{IP:9300}{...}{ml.machine_memory=35334332416, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}, {es03-ds1}{...}{IP}{IP}{...}{ml.machine_memory=33270734848, ml.max_open_jobs=20, xpack.installed=true, transform.node=true}, {es01-ds1}{....}{IP}{IP}{...}{ml.machine_memory=35334332416, ml.max_open_jobs=20, xpack.installed=true, transform.node=true}]; discovery will continue using [10.32.0.82:9300, 10.32.0.84:9300, 10.32.0.120:9300] from hosts providers and [{es02-ds1}{...}{10.32.0.83}{10.32.0.83:9300}{...}{ml.machine_memory=35334332416, xpack.installed=true, transform.node=true, ml.max_open_jobs=20}] from last-known cluster state; node term 0, last-accepted version 0 in term 0" }
(Deleted IDs & some IPs)
I tried to restore the old certificates and start the nodes. It shows the following:
"stacktrace": ["io.netty.handler.codec.DecoderException: javax.net.ssl.SSLHandshakeException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed"
...
"Caused by: java.security.cert.CertificateExpiredException: NotAfter: Fri Aug 09 08:17:38 UTC 2024",
How can we start the cluster?