curl_easy_perform() failed: Problem with the SSL CA cert (path? access rights?)

curl_easy_perform() failed: Problem with the SSL CA cert (path? access rights?)  

最近遇到了一个这个问题

发现是因为自己加了一个这个

 curl_easy_setopt(pCURL, CURLOPT_SSL_OPTIONS, (long)CURLSSLOPT_ALLOW_BEAST | CURLSSLOPT_NO_REVOKE);  
 

 

后来改成

curl_easy_setopt(pCURL, CURLOPT_SSL_VERIFYPEER, 0);
 
就可以了== 坑到自己了
posted @ 2024-01-04 16:31  冰糖葫芦很乖  阅读(100)  评论(0编辑  收藏  举报