Can't run curl in terminal

Hi Everyone,
I don't know what's happen, but i can't run curl cmd in terminal,
I've already ran curl -GET https://127.0.0.1:9200
and the response is:

curl: (58) could not load PEM client certificate, OpenSSL error error:02001002:system library:fopen:No such file or directory, (no key found, wrong pass phrase, or wrong file format?)

when i run curl -X GET 'https://localhost:9200/_cat/indices?v'

curl: (60) SSL certificate problem: self signed certificate in certificate chain
More details here: curl - SSL CA Certificates

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

I also try this:
curl --cacert /etc/elasticsearch/config/certs/http_ca.crt -u elastic https://127.0.0.1:9200

but:

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

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