Laravel 5 Socialite – cURL error 77: error setting certificate verify locations

I got stuck on this problem as well. It turned out that I had the path to my certificate set incorrectly in my php.ini file. Forgot the .txt extension.

What I had:

curl.cainfo = "C:\xampp\php\cacert.pem"

What I changed it to:

curl.cainfo = "C:\xampp\php\cacert.pem.txt"

Hope this helps.

Leave a Comment