If you are on Windows using Xampp, I am stealing a better answer from here, would be helpful if Google shows you this question first.
- Download and extract for cacert.pem here (a clean file format/data)
- https://curl.haxx.se/docs/caextract.html
- Put it in :
- C:\xampp\php\extras\ssl\cacert.pem
- Add this line to your php.ini
- curl.cainfo = "C:\xampp\php\extras\ssl\cacert.pem"
- restart your webserver/Apache
If you are using Wamp:
- C:\wamp64\bin\php\php7.4.4\phpForApache.ini . - Edit here
- Restarting PC worked for me. Thanks
No comments:
Post a Comment