Run elastic in docker

HI i run my elastic in docker but when i tap this command

curl --cacert http_ca.crt -u  elastic https://localhost:9200
Enter host password for user 'elastic':

i have this problem:

curl: (60) schannel: CertGetCertificateChain trust error CERT_TRUST_REVOCATION_STATUS_UNKNOWN
More details here: https://curl.se/docs/sslcerts.html

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 believe you're missing the following flag:

% curl --help all | grep -- --insecure
 -k, --insecure           Allow insecure server connections
%
1 Like

Please try this

curl --cacert http_ca.crt -u  elastic https://localhost:9200 --insecure

1 Like

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