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

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

    https://laracasts.com/discuss/channels/general-discussion/curl-error-60-ssl-certificate-problem-unable-to-get-local-issuer-certificate

    https://laracasts.com/discuss/channels/general-discussion/curl-error-60-ssl-certificate-problem-unable-to-get-local-issuer-certificate/replies/52954

    I just spent a number of hours grappling with this. The correct answer is

    "indeed to put the cacert.pem file and amend the php.ini file to match as suggested by Moez above. ..... but I kept on getting CURL error 60's The trick was getting a clean copy of the PEM file! Any method involving windows notepad or other editors corrupts the file and gives the cURL error 60 etc. Finally I found https://gist.github.com/VersatilityWerks/5719158/download and downloaded a tar file with a clean copy of the cacert.pem file ...... it then all worked perfectly."

    And since you are working on Windows, this could be the problem.

提交回复
热议问题