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)
-
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