cURL和Windows 7 cmd:(60)SSL证书:无法获取本地颁发者证书

时间:2018-09-02 11:01:38

标签: ssl curl wamp

我尝试在Windows 7命令提示符(Wampserver 2.5,PHP 5.5.12,Apache2.4.9)上运行此命令:

c:\Curl>curl https://jsonplaceholder.typicode.com/posts

,我得到了(60)SSL证书问题。

在网上阅读了几篇文章后:

1-从https://curl.haxx.se/docs/caextract.html下载了cacert.pem文件

2-放入C:\wamp\bin\php\php5.5.12\extras\ssl\cacert.pem

curl.cainfo = "c:\wamp\bin\php\php5.5.12\extras\ssl\cacert.pem"中设置openssl.cafile = "c:\wamp\bin\php\php5.5.12\extras\ssl\cacert.pem"C:\wamp\bin\php\php5.5.12\php.ini

curl.cainfo = "c:\wamp\bin\php\php5.5.12\extras\ssl\cacert.pem"中设置openssl.cafile = "c:\wamp\bin\php\php5.5.12\extras\ssl\cacert.pem"C:\wamp\bin\apache\apache2.4.9\bin\php.ini

5-重新启动Wampserver

但是cURL(60)SSL问题仍然存在。

有什么建议吗?

谢谢

0 个答案:

没有答案