I am using socialite in Laravel 5 to setup facebook login. I followed the instructions carefully until I got stuck with the following error
cURL error 60: SSL certificate problem: unable to get local issuer certificate
so I found the this answer to fix it which indeed passed but then I got this error
cURL error 77: error setting certificate verify locations:
CAfile: /Applications/XAMPP/xamppfiles/cacert.pem
CApath: none
Any ideas what's the cause of this error?! and how to fix it?!
For windows
I had same problem after i updated php on window 2008. Suddenly all my php codes stopped working. What i did, i opned php.ini then i found a line
;curl.cainfo =
and i changed to
curl.cainfo = "C:\Program Files (x86)\PHP\v7.0\cacert.pem"
(remember to remove ; before curl.cainfo)and everything went to normal. What you need is to download a cert file cert.pem and place it anywhere on your server and change the line as i did in php.ini
I've tried @mahesh-singh-chouhan, @omarsafwany, @LyleK solutions. but get same error repeatedly.
After that, I update php.ini file without double quotes & with .pem extension & I'm succeed to get desired result with below code.
I've also attached Screenshot.
Please first try above users suggestions, If failed also use this.
Thanks for solutions It creates way for me @mahesh-singh-chouhan, @omarsafwany, @LyleK [![enter image description here][1]][1]
cacert.pem.txt
inC:\xampp\php
Add to
php.ini
:Then it works fine!
If it is related to git
git config --global http.sslverify "false" will solve the problem
You need to replace the existing certificate with the other one here. After that:
xampp\php\ext
xampp\php\php.ini
curl.cainfo='location from the first step'
to the end of the file.This is the source link.