【发布时间】:2013-08-15 14:45:19
【问题描述】:
我正在尝试与 Google PHP API 客户端交互,但我遇到了 Google 提供的证书问题:
谷歌错误:
SSL certificate problem, verify that the CA cert is OK.
Retrying with the CA cert bundle from google-api-php-client.
PHP cURL 错误:
SSL certificate problem: unable to get local issuer certificate
我在 Linux 机器上没有任何问题。这些错误发生在 Windows 机器上。
我尝试了几种不同的解决方案:
https://code.google.com/
http://richardwarrender.com/
但无济于事。
PS:
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
不会被接受...
【问题讨论】:
-
我也遇到了同样的问题,也尝试了这两种解决方案,但它一直显示该错误消息!伙计们,请帮助我们!谢谢! :)
标签: php curl google-api