elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
1.12k stars 24.83k forks source link

Add JDBC URL Parameter ssl.verifyServerCertificate #97454

Open wise-coders opened 1 year ago

wise-coders commented 1 year ago

Description

Please add a parameter to the JDBC URL ssl.verifyServerCertificate, so I can set it to false. I use an Elasticsearch docker container, and wanted to connect using the JDBC driver. I get errors 'http client did not trust this server's certificate, closing connection' in the server.

Handling this certificates is not easy, I tried to import them in Java but I didn't find the right way to do this. Improving this documentation page would be also useful: Elasticsearch docu

elasticsearchmachine commented 1 year ago

Pinging @elastic/es-ql (Team:QL)

costin commented 1 year ago

We'll look into adding some options out of the box to tweak this behavior - in the meantime you could avoid using ssl and just use http.

wise-coders commented 1 year ago

It would be nice to add the parameter. The driver is used by a design tool, and many users have http disabled ( only https enabled ). For them the certificate trusting issue will occur.

elasticsearchmachine commented 10 months ago

Pinging @elastic/es-analytics-geo (Team:Analytics)

suhli commented 10 months ago

any update here?

Lukas1v commented 9 months ago

Would also be very interested in this option