更新WAMP/Apache以使用新的cacert.pem

And*_*rew 6 php apache wamp ssl-certificate

更新的CA证书:http://curl.haxx.se/ca/cacert.pem

我知道我已经在另一台机器上完成了这项工作,但是当我不得不执行此操作时,我无法找到之前找到的资源.

我想更新WAMP以使用上面的.pem,但我不能为我的生活记住用什么命令做到这一点.

Ray*_*Ray 15

如果你至少运行php 5.3.7,你可以把它放在php.ini文件末尾的ini中:

curl.cainfo=c:\path\to\cacert.pem
Run Code Online (Sandbox Code Playgroud)

您需要找到您选择使用的php版本的特定php.ini文件.

文档中的评论显示:http://php.net/manual/en/function.curl-setopt.php

这是具有特定设置的文档:http://php.net/manual/en/curl.configuration.php

  • 这是CA Cert文件!!!! https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt工作.@Ray你应该喝一杯啤酒,试图在这个结束时坚持到底 (2认同)