Update WAMP/Apache to use new cacert.pem

2019-04-08 06:51发布

Updated CA Cert: 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.

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.

1条回答
别忘想泡老子
2楼-- · 2019-04-08 07:35

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

You'll need to find the specific php.ini file for the version of php one you've selected to use.

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

Here's the doc with the specific setting: http://php.net/manual/en/curl.configuration.php

查看更多
登录 后发表回答