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

后端 未结 6 1778
被撕碎了的回忆
被撕碎了的回忆 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:06

    While on local-host with Laravel you can easily bypass cURL error.

    navigate to Client.php file (vendor\guzzlehttp\guzzle\src\Client.php)

    Change "verify" to false

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

提交回复
热议问题