elastic-query-export icon indicating copy to clipboard operation
elastic-query-export copied to clipboard

Looks like -verifySSL is not doing anything

Open herrbpl opened this issue 2 years ago • 2 comments

Cannot query elasticsearch instance where certificate is self-signed ad-or does not match hostname. Specifying -verifySSL false or -verifySSL 0 or just without parameter, seems to have no effect, still get message:

 Error connecting to ElasticSearch: health check timeout: Head "https://x.y.z:9200": x509: certificate is valid for a.b.c, not x.y.z: no Elasticsearch node available

herrbpl avatar Feb 21 '23 09:02 herrbpl

In fact, specifying -verifySSL seems to stop processing command line arguments at all. If you specify this flag before -c url, application tries to connect to localhost:9200..

herrbpl avatar Feb 21 '23 09:02 herrbpl

You need to pass --verifySSL=true or --verifySSL=false to toggle verifying SSL certificates or not. In the end this sets the "skip verify" of provided certificates in the HTTP client. I will improve the docs for pointing this out :)

pteich avatar Oct 19 '23 19:10 pteich