Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update WAMP/Apache to use new cacert.pem

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.

like image 605
Andrew Avatar asked Aug 06 '14 20:08

Andrew


1 Answers

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

like image 133
Ray Avatar answered Nov 05 '22 20:11

Ray