Curl: (77) error setting certificate verify locations:

I am installing Elasticsearch on Amazon Linux 2 EC2 instances, and using the latest version of ES 8.2.3. When I run:

sudo systemctl status elasticsearch.service

ES shows as running on all three, but when I check:

$ curl --cacert /etc/elasticsearch/certs/http_ca.crt -u elastic https://localhost:9200

I get

curl: (77) error setting certificate verify locations:  CAfile: /etc/elasticsearch/certs/http_ca.crt CApath: none

I am very new to ES, any guidance on this issue?

Sort of resolved, had to run the sudo the curl command. Now I am getting a different issue that I have yet to research.

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