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

后端 未结 6 1758
被撕碎了的回忆
被撕碎了的回忆 2021-02-15 17:10

Currently, I am doing a project on laravel5.

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

 RequestException in CurlF         


        
6条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-15 18:05

    After so much of research i found the best solution for this. You just need to make verification false in the vendor/guzzlehttp/guzzle/src/Client.php file .

        $defaults = [
            'allow_redirects' => RedirectMiddleware::$defaultSettings,
            'http_errors'     => true,
            'decode_content'  => true,
            'verify'          => true, // make this false
            'cookies'         => false,
            'idn_conversion'  => true,
        ];
    

提交回复
热议问题