Connecting to Elasticsearch from GUI using API and http security

I am currently running ES 7.11.1 and have set up basic security using a self created ca, certificates for each ES node, and ssl.http for External API access. All nodes and Kibana connect and work without an issue.

However, I am unable to get my search GUI, which connects to the API on the back end, to connect to the ES node I set up for the connection. I get a net::ERR_CERT_AUTHORITY_INVALID error when it attempts to connect to the ES node.

The GUI has a non self-signed certificate and I have added the root ca for the GUI cert to the elastic ssl.transport.keystore/truststore (same file) and I have also added the root ca to the http.p12 file.

Xpack config from Elasticsearch.yml file: true true full <path to node cert> <path to node cert> true http.p12

Any suggestions on what I might try next?


Are the Kibana HTTPS and Elasticsearch HTTPS certs signed by different CA certificates?

For this error, I think Kibana might not be trusting the Elasticsearch HTTPS cert chain, so append the Elasticsearch CA cert to the Kibana trusted CA certs list setting.

Another option is use a single CA to sign all of your HTTPS certs, so they all trust each other, and external access to both Kibana and Elasticsearch only need to import that common CA cert.

Thanks for the reply,

The Kibana https and Elasticsearch https file are the same and are working.

The issue is with a search GUI that is separate from Kibana that is using a certificate from a outside CA.

The HTTPS p12 file is a self-signed certificate created using the Elasticsearch documentation and uses an Elasticsearch created CA.

I have tried importing the root CA of the GUI certificate into the HTTPS cert and the transport truststore.

What does Elasticsearch use to authorize access for HTTPS? Elasticsearch.keystore? The file in the A different file?

Thank you again.

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