curl version is 7.78.0 openssl version is 1.1.1k
I ran a sample code to test. The certificates path on Android is /system/etc/security/cacerts
curl_easy_setopt(curl_.get(), CURLOPT_SSL_VERIFYPEER, 1L);
curl_easy_setopt(curl_.get(), CURLOPT_CAPATH, "/system/etc/security/cacerts");
one more thing, i use a pem file, put it in this path. set it to curl through CURLOPT_CAINFO. it works well.
but when i use CURLOPT_CAPATH, no matter it has the pem file or not, it doesn't work.
i have seen this :How to make SSL peer_verify work on Android?
try : 1.build with -DCURL_CA_PATH=/system/etc/security/cacerts 2.modify the by_dir.c at openssl source X509_NAME_hash to X509_NAME_hash_old
both dont work.