How to fix Elasticsearch host: failed to get info from connection: x509: certificate has expired or is not yet valid

Solution Verified - Updated -

Issue

  • How to fix Elasticsearch host: failed to get info from connection: x509: certificate has expired or is not yet valid
2022-09-22 06:57:40 [INFO] initialized handler [transport pair: socket, handler: events]
2022-09-22 06:57:40 [INFO] loaded transport [transport: socket]
2022-09-22 06:57:40 [ERROR] failed configuring application [error: failed to connect to Elasticsearch host: failed to get info from connection: x509: certificate has expired or is not yet valid: current time 2022-09-22T06:57:40Z is after 2022-02-12T13:11:13Z, application: elasticsearch]

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content