更新 WAMP/Apache 以使用新的 cacert.pem [英] Update WAMP/Apache to use new cacert.pem

查看:46
本文介绍了更新 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

这篇关于更新 WAMP/Apache 以使用新的 cacert.pem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆