Update WAMP/Apache to use new cacert.pem(更新 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:更新 WAMP/Apache 以使用新的 cacert.pem
- 正确分离 PHP 中的逻辑/样式 2021-01-01
- Laravel 仓库 2022-01-01
- 带有通配符的 Laravel 验证器 2021-01-01
- PHP Count 布尔数组中真值的数量 2021-01-01
- Oracle 即时客户端 DYLD_LIBRARY_PATH 错误 2022-01-01
- 从 PHP 中的输入表单获取日期 2022-01-01
- SoapClient 设置自定义 HTTP Header 2021-01-01
- Mod使用GET变量将子域重写为PHP 2021-01-01
- 如何定位 php.ini 文件 (xampp) 2022-01-01
- 没有作曲家的 PSR4 自动加载 2022-01-01
