curl can't verify cert using capath, but can with cacert option
- by phylae
I am trying to use curl to connect to a site using HTTPS. But curl is failing to verify the SSL cert.
$ curl --verbose --capath ./certs/ --head https://example.com/
* About to connect() to example.com port 443 (#0)
* Trying 1.1.1.1... connected
* Connected to example.com (1.1.1.1) port 443 (#0)
* successfully set certificate verify locations:
* …