Http client did not trust this server's certificate from the browser


SSL does not work when I try to access https://localhost:9200 from the browser
I get
: http client did not trust this server's certificate, closing connection

my elasticsearch.yml : true true certificate instance.key instance.crt [ "ca.crt" ] true instance.key instance.crt [ "ca.crt" ]

I generated the certificates with .elasticsearch-certutil (pem format)


First of all, what version of Elasticsearch are you using? Then, did you include "localhost" as a SAN (Subject Alternative Name) when you created the certificate?


1 Like

This is expected. You are using an SSL certificate that was generated with elasticsearch-certutil and singed by a custom local CA which, as expected, is not trusted by your browser. Most browsers will allow you to add an exception for this certificate so that you can bypass this warning and access your Elasticsearch node on localhost over https.

This is fine for a dev environment on localhost.


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