~~~
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系統參考:
https://blog.csdn.net/ekey_code/article/details/78367535
導致該問題的原因在于沒有配置curl.cainfo,該配置位于php.ini中。
解決方案:
- 下載cacert.pem
https://curl.haxx.se/ca/cacert.pem
- 配置php.ini
[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
curl.cainfo = 【你的絕對路徑】
原文鏈接:https://blog.csdn.net/loophome/article/details/83112364
大家在使用過程中遇到問題,歡迎跟帖反饋,本貼持續更新……