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

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

    For anyone pulling their hair out saying "I'VE DOWNLOADED A PRISTINE cacert.pem FILE, PUT IT IN THE CORRECT LOCATION, SET curl.cainfo CORRECTLY, AND RESTARTED MY APACHE SERVER BUT IT JUST DOESN'T WORK!?!?"... If you're using php-fpm then service apache2 restart and service apache2 reload will not update the reference and you'll continue to get error 60. If you intentionally point curl.cainfo to a bad path, you will not get the expected error 77 (first clue).

    To restart php-fpm and update that reference (without rebooting the whole server), use service php-fpm restart or service php5-fpm restart or service php7-fpm restart or service php7.0-fpm restart, etc, depending on your php version. Hope this helps save someone time.

提交回复
热议问题