curl error: Problem with the SSL CA cert (path access rights?) 的解决方法


github上的解决方案

https://github.com/archlinuxfr/yaourt/issues/287

curl_easy_perform()返回值说明
在移植别人的sdk的时候发现

errno 2  好像是缺少一个文件的意思.
curl_easy_perform()返回值说明
CURLE_SSL_CACERT_BADFILE,      /* 77 - could not load CACERT file, missing    77:    problem with the SSL CA cert (path? access rights?)  

https://curl.haxx.se/docs/caextract.html
从这个网站上下载最新的cacert.pem 然后放在/etc/ssl/certs/ca-certificates.crt,这样就不会报错了.
应该是缺少ca(好像是认证信息的意思)


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM