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
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.