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

查看:267
本文介绍了更新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使用上面的质子交换膜,但我不能为我的生活记得在那里做什么命令。

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\to\cacert.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

A comment in the doc's show this: http://php.net/manual/en/function.curl-setopt.php

下面是与特定设置文档: http://php.net/manual/ EN / 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天全站免登陆