eddy1992
140
17
Laravel

How to solve cURL error 60: SSL certificate in Laravel 5 while Facebook authentication

Posted 3 years ago by eddy1992

I am using socialize for Facebook authentication, But I got cURL error Mentioned below.

RequestException in CurlFactory.php line 162:
cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

My controller :

<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use Socialite;

class AccountController extends Controller
{
    public function facebook_redirect() 

    {
        return Socialite::with('facebook')->redirect();
    }

    public function facebook()
    {
         $user = Socialite::with('facebook')->user();
    }
}

please help Thank you :)

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.