You can try getting the latest ca-cert bundle
cd ~/.ssh
sudo wget http://curl.haxx.se/ca/cacert.pem
export CURL_CA_BUNDLE=~/.ssh/cacert.pem
Also check your php.ini settings and make sure your php is set to use the latest CA bundle.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi All,
on a fresh installation of Laravel 5.4 and Socialite package, I get this error when trying to log in via Google
cURL error 51: SSL: certificate verification failed (result: 5) (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
Happens when hitting this controller:
/**
* Handle Google Sign In redirection
*/
public function handleGoogle()
{
$user = Socialite::driver('google')->user();
// dd($user);
}
Any suggestions?
Please or to participate in this conversation.