更新 WAMP/Apache 以使用新的 cacert.pem
更新的 CA 证书:http://curl.haxx.se/ca/cacert.pem
我知道我已经在另一台机器上完成了这项工作,但我无法找到我之前必须执行此操作时找到的资源.
I know I've done this on another machine but I can't find the resources that I found before when I had to perform this.
我想更新 WAMP 以使用上面的 .pem,但我一辈子都不记得在哪里使用什么命令来执行此操作.
I want to update WAMP to use the .pem above, but I can't for the life of me remember where to do that with what command.
推荐答案
如果你运行的至少是 php 5.3.7,你可以把它放在 php.ini 文件末尾的 ini 中:
If you're running at least php 5.3.7, you can put this in the ini at the end of your php.ini file:
curl.cainfo=c:path ocacert.pem
您需要为您选择使用的 php 版本找到特定的 php.ini 文件.
You'll need to find the specific php.ini file for the version of php one you've selected to use.
文档中的注释显示:http://php.net/手册/en/function.curl-setopt.php
这是具有特定设置的文档:http://php.net/manual/zh/curl.configuration.php
Here's the doc with the specific setting: http://php.net/manual/en/curl.configuration.php
相关文章