CRMEB知识付费系统安装搭建微信菜单添加报错

image.png
curl: (77) error setting certificate verify locations:CAfile: /etc/pki/tls/certs/ca-bundle.crtCApath: none

如果目标目标不存在,则需要通过运行
sudo mkdir -p /etc/pki/tls/certs

通过运行将证书复制到预期的目标

sudo cp /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/certs/ca-bundle.crt
windows系统参考:

blog.csdn.net/ekey_code/a…

导致该问题的原因在于没有配置curl.cainfo,该配置位于php.ini中。

解决方案:

下载cacert.pem
curl.haxx.se/ca/cacert.p…

配置php.ini
[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
curl.cainfo = 【你的绝对路径】

如果你觉得这篇文章对你有点用的话,麻烦请给我们的开源项目点点star: github.crmeb.net/u/defu 不胜感激 !

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享