3

cURL is not working when I run curl on my WAMP server. Anyone know how to activate this for php 7.0+?

I have tried to uncomment extension=php_curl.dll in php.ini

Here is my error message:

cURL Error #:SSL certificate problem: unable to get local issuer certificate
Edvard Åkerberg
  • 2,181
  • 1
  • 26
  • 47

1 Answers1

15
  1. Download ca-bundle.crt from https://github.com/bagder/ca-bundle/blob/e9175fec5d0c4d42de24ed6d84a06d504d5e5a09/ca-bundle.crt
  2. Put the file in c:\wamp64\
  3. Change php.ini to the following

    curl.cainfo="C:/wamp64/ca-bundle.crt"

    openssl.cafile="C:/wamp64/ca-bundle.crt"

This worked for me.

Note : You have to restart server after doing above process.

Vasim Shaikh
  • 4,485
  • 2
  • 23
  • 52
Edvard Åkerberg
  • 2,181
  • 1
  • 26
  • 47
  • Thanks, this saved me, after numerous searches and hours spending to find solution. This worked. – lonerunner Mar 17 '18 at 15:26
  • Thank you. A few hours of searching. For others searching: Windows WAMP apache php curl not working no error messages curl is enabled. I used the latest cacert.pem from https://curl.se/docs/caextract.html – Jon8RFC Oct 23 '22 at 18:03