filerun Error: cURL error 60: SSL certificate problem: certificate has expired(已解决)

起因:在家里部署filerun用来同步照片,然后一直吃灰,好家伙几年没更新了,好吧,作死一回。报错如下:Error: cURL error 60: SSL certificate problem: certificate has expired。我瞪着屏幕,屏幕反蹬着我,能怎么办?没有搜索没法活,一顿搜索二百五,终于搞定。

HTTPS/SSL support
If your FileRun installation fails to connect to other servers because of SSL problems, you can try fix it by updating the SSL certificate bundle used for cURL.
To do so, please follow these steps:

Download https://curl.haxx.se/ca/cacert.pem
Replace the file system/classes/vendor/GuzzleHttp/cacert.pem (inside your FileRun installation folder) with the newly downloaded version.
If this is not fixing the problem, your PHP might have it's own file configured inside the “php.ini” configuration file.

The configuration would look something like this:

[CURL]
curl.cainfo = "/path/to/cacert.pem"
Please try to replace the file at that path with the newly downloaded cacert.pem above. You will need to restart PHP (either by restarting PHP-FPM or Apache/Nginx, depending on how your server is configured), for the change to take effect.

CentOS users might want to try also yum update ca-certificates

上面是fileyun官方给出的解决方案(我用来凑字数),咱是filerun部署在宝塔上,稍微改一下配置就好。中心思想就是重新下载cacert.pem这个文件,然后修改php配置文件:

注销配置文件中:curl.cainfo 这一行

修改:; openssl.cafile=/etc/ssl/certs/ca-certificates.crt

修改成filerun中system/classes/vendor/GuzzleHttp/cacert.pem(你的filerun目录)

好了,大功告成,又水了一贴。filerun可以更新了。。。

未经允许不得转载:小毛子的记录站 » filerun Error: cURL error 60: SSL certificate problem: certificate has expired(已解决)

赞 (49) 打赏