Hi All,
Suddenly I was unable to execute any GET command via DevTools as I started getting 502 Bad gateway error as follows:
GET /_ssl/certificates {
"statusCode": 502,
"error": "Bad Gateway",
"message": "certificate has expired"
}
I noticed in http.p12 that the cert expired on June 14 as follows:
-bash-4.4$ /opt/jdk/latest/bin/keytool -list -v -keystore http.p12
Enter keystore password:
Keystore type: PKCS12
Keystore provider: SUN
Your keystore contains 2 entries
Alias name: http
Creation date: Jun 15, 2023
Entry type: PrivateKeyEntry
Certificate chain length: 2
Certificate[1]:
Owner: CN=sd-a524-83c7
Issuer: CN=Elasticsearch security auto-configuration HTTP CA
Serial number: cbd2efbf79fd6ae161271f735fddaf95c1596c56
Valid from: Thu Jun 15 23:42:37 EDT 2023 until: Sat Jun 14 23:42:37 EDT 2025
Elasticsearch logs were also showing this as follows:
[2025-06-23T14:54:59,930][WARN ][o.e.h.n.Netty4HttpServerTransport] [524-83c7] http client did not trust this server's certificate, closing connection Netty4HttpChannel{localAddress=/146.12.12.47:43077, remoteAddress=/146.128.12.49:33198}
Please guide on how to renew this certificate. This cert was created automatically while creating ES cluster elasticsearch-8.7.0
Thanks