# Curl error when connecting with ElasticSearch running from docker - Windows

**URL:** <https://discuss.elastic.co/t/curl-error-when-connecting-with-elasticsearch-running-from-docker-windows/338525>\
**Category:** Elasticsearch\
**Tags:** docker, windows\
**Created:** [July 17, 2023, 9:41am UTC](https://discuss.elastic.co/t/curl-error-when-connecting-with-elasticsearch-running-from-docker-windows/338525 "2023-07-17T09:41:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chaitanya\_Kanth](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chaitanya_kanth/32/123523_2.png) [@Chaitanya\_Kanth](https://discuss.elastic.co/u/Chaitanya_Kanth)\
**Post date:** [July 17, 2023, 9:41am UTC](https://discuss.elastic.co/t/curl-error-when-connecting-with-elasticsearch-running-from-docker-windows/338525/1 "2023-07-17T09:41:50Z")

</div>

I installed Elasticsearch docker image on windows 10 machine. Docker v4.21.1 and elasticsearch v8.2.2. I downloaded the cert file and running the curl command from same location where file is downloaded. Running below command

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

I get the below error after entering the password

```auto
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.

```

Note: I know insecure options work. But want to understand why it doesn't connect via the secure channel.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 14, 2023, 9:42am UTC](https://discuss.elastic.co/t/curl-error-when-connecting-with-elasticsearch-running-from-docker-windows/338525/2 "2023-08-14T09:42:36Z")

</div>

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