Laravel 5 Socialite - cURL error 77: error setting certificate verify locations

后端 未结 21 1945
暖寄归人
暖寄归人 2020-12-02 18:36

I am using socialite in Laravel 5 to setup facebook login. I followed the instructions carefully until I got stuck with the following error

cURL error 60: SS         


        
21条回答
  •  暖寄归人
    2020-12-02 19:28

    I read every thread I could find and this one provided the missing piece.

    Background: I encountered this issue will trying to get Drupal 8 to check for available updates on a fresh development environment (wamp based).

    1. Get a copy of the Certificate data from Mozilla, it can be found here: https://curl.haxx.se/ca/cacert.pem If you want to know more about what this is read this: https://serverfault.com/questions/241046/what-is-the-cacert-pem-and-for-what-to-use-that
    2. Save the file as "cacert.pem.txt" not as "cacert.pem" This was the missing piece, thanks LyleK!. I have no clue why but you must have the .txt extension on the end or it does not work.
    3. Explicitly add the path to the location of the "cacert.pem.txt" file to your php.ini

    Example:

    [curl]
    ; A default value for the CURLOPT_CAINFO option. This is required to be an
    ; absolute path.
    curl.cainfo = "C:\wamp\custom\cacert.pem.txt"
    

    If you are using a wamp stack restart it. You should be good to go.

提交回复
热议问题