cURL error 60: SSL certificate in Laravel 5.4

后端 未结 8 913
有刺的猬
有刺的猬 2020-12-02 20:47

Full Error

RequestException in CurlFactory.php line 187: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see ht

8条回答
  •  旧时难觅i
    2020-12-02 21:42

    Do not ever modify files in the vendor/ folder. Ever. They can and will be overwritten on the next composer update you run.

    Here is my Solution for WampServer

    I am using PHP 7.1.9 for my WampServer, so change 7.1.9 in the example below to the version number you are currently using.

    1. Download this file: http://curl.haxx.se/ca/cacert.pem
    2. Place this file in the C:\wamp64\bin\php\php7.1.9 folder
    3. Open php.iniand find this line:

    ;curl.cainfo

    Change it to:

    curl.cainfo = "C:\wamp64\bin\php\php7.1.9\cacert.pem"

    Make sure you remove the semicolon at the beginning of the line.

    Save changes to php.ini, restart WampServer, and you're good to go!

提交回复
热议问题