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

后端 未结 21 1922
暖寄归人
暖寄归人 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:21

    1. Save this certificate (https://curl.haxx.se/ca/cacert.pem) as cacert.pem.txt in C:\xampp\php
    2. Add to php.ini:

      curl.cainfo = "C:\xampp\php\cacert.pem.txt"
      
    3. Don't forget to restart XAMPP (it won't work until it restarts)

    Then it works fine!

提交回复
热议问题