0

I am developing an application with Symfony 2 on a local server running Windows but finding a problem with Curl, namely:

SSL certificate problem: unable to get local issuer certificate

Would seem to be a common problem for this OS but there is a definitive solution to solve it?

Bearing in mind that deploy the application will be done on a server installed with Linux.

4

1 回答 1

0

禁用对等验证不是一个好的解决方案。

PHP 的 curl 扩展可以加载经过验证的证书颁发机构列表。

从 curl 的作者处下载http://curl.haxx.se/ca/cacert.pem并将其添加到您的 php.ini

curl.cainfo="c:\php\cacert.pem"
于 2014-09-07T21:22:03.930 回答