cURL request not working with CA certificate on Windows

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.

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