# cURL request not working with CA certificate on Windows

**URL:** <https://discuss.elastic.co/t/curl-request-not-working-with-ca-certificate-on-windows/299566>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [March 13, 2022, 12:58pm UTC](https://discuss.elastic.co/t/curl-request-not-working-with-ca-certificate-on-windows/299566 "2022-03-13T12:58:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [March 13, 2022, 3:54pm UTC](https://discuss.elastic.co/t/curl-request-not-working-with-ca-certificate-on-windows/299566/2 "2022-03-13T15:54:08Z")

</div>

Take a look at this post there may be a typo in the docs.

Perhaps try this depending on where you're running the command from, but the service are not in the config directory. They're in the certs directory.

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

```

> [@Newbie to Linux/elastic. I'm having trouble setting up elasticsearch](https://discuss.elastic.co/t/newbie-to-linux-elastic-im-having-trouble-setting-up-elasticsearch/298687/15):
>
> @epheria , @elasticscrub it seems this is just a docs error in curl --cacert /etc/elasticsearch/config/certs/http\_ca.crt -u elastic https://localhost:9200 should be curl --cacert /etc/elasticsearch/certs/http\_ca.crt -u elastic https://localhost:9200 Apologies for missing this above. We will adjust the docs, thanks for bringing this up !

---

_[View the full topic](https://discuss.elastic.co/t/curl-request-not-working-with-ca-certificate-on-windows/299566)._
