SSO error failed to establish trust with server at []

Hi, I came across a problem recently and I need urgent help. The machine that was running Elasticsearch was restarted and now the service will not run. The error is: PKIX path building failed: unable to find valid certification path to requested target
        at ~[?:?]
        at ~[?:?]
        at ~[?:?]

What is causing this issue? It was running before and now it is dead so why did SSO just behave like that?

Thank you in advance.


The error message indicates a problem with the certification path, which might be related to the Java truststore. Verify that the SSL certificate's root CA is present in the Java truststore. You may need to import the CA certificate into the truststore using the keytool command.

keytool -import -trustcacerts -keystore $JAVA_HOME/jre/lib/security/cacerts -storepass changeit -noprompt -alias your_alias -file /path/to/your/ca_certificate.crt

Replace your_alias with a unique alias and provide the correct path to your CA certificate.


Yeah, but it had worked for 2 years before the reboot and I had a functioning SSO with SAML. What CA should I import into trustore?

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