2016-11-18 114 views
1

上次我下载了认证并将其保存在以下路径中。cURL错误77:错误设置证书验证位置:

CAfile: C:\xampp\php\extras\ssl\cacert.pem 

我添加的路径,我的php.ini文件类似下面的

[curl] 
; A default value for the CURLOPT_CAINFO option. This is required to be an 
; absolute path. 
curl.cainfo = "C:\xampp\php\extras\ssl\cacert.pem" 

最后,我重新启动我的XAMPP。但是,我仍然有以下错误

cURL error 77: error setting certificate verify locations: 
CAfile: C:\xampp\php\extras\ssl\cacert.pem 
CApath: none (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) 

任何一个解决方案?

回答

0

是你的curl.exe和cacert.pem在同一个目录下吗?

1-A解决方案,能够帮助是XAMP目录以外的地方cacert.pem(你可以写你的新网址,您的PHP代码)

2,把它放在“C:\ XAMPP \ PHP

试试看!

+0

我发现问题出在我下载认证时,它只有521行而不是3895行。 –