且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

laravel:cURL错误60:SSL证书无法获取本地颁发者证书

更新时间:2022-06-15 08:43:46

我遇到了类似的问题.无需更改/vendor/guzzlehttp/guzzle/src/Client.php

I had the similar problem. No need to change /vendor/guzzlehttp/guzzle/src/Client.php

也许这可以为您提供帮助.

Maybe this can help you.

  1. https://curl.haxx.se/下载cacert.pem文件docs/caextract.html
    将cacert.pem放在您喜欢的地方.

  1. Download cacert.pem file from https://curl.haxx.se/docs/caextract.html
    Put the cacert.pem somewhere you like.

编辑php.ini

两行:

curl.cainfo=D:/Servers/php/sslfiles/cacert.pem  
openssl.cafile=D:/Servers/php/sslfiles/cacert.pem  

  1. 重新启动apache httpd.