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
基础教程推荐
- 将变量从树枝传递给 js 2022-01-01
- 主题化 Drupal 7 的 Ubercart “/cart"页 2021-01-01
- php中的foreach复选框POST 2021-01-01
- Yii2 - 在运行时设置邮件传输参数 2022-01-01
- PHPUnit 的 Selenium 2 文档到底在哪里? 2022-01-01
- 使用 scandir() 在目录中查找文件夹 (PHP) 2022-01-01
- php中的PDF导出 2022-01-01
- php 7.4 在写入变量中的 Twig 问题 2022-01-01
- 如何在数学上评估像“2-1"这样的字符串?产生“1"? 2022-01-01
- Web 服务器如何处理请求? 2021-01-01
