【发布时间】:2011-10-22 03:03:31
【问题描述】:
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_CAINFO, getcwd() . "/usr/share/ssl/certs/www.site.com.crt ");
上面给出的代码用于支付部分。显示以下错误:
%s: s77 错误设置证书验证位置:CAfile:/home/site/public_html/usr/share/ssl/certs/www.site.com.crt CApath:无
如何解决这个问题,谁能帮帮我
谢谢
【问题讨论】:
-
尝试删除 getcwd() 并检查文件是否正好有这样的位置