~~~
curl: (77) error setting certificate verify locations:CAfile: /etc/pki/tls/certs/ca-bundle.crtCApath: none
如果目標(biāo)目標(biāo)不存在,則需要通過運(yùn)行
sudo mkdir -p /etc/pki/tls/certs
通過運(yùn)行將證書復(fù)制到預(yù)期的目標(biāo)
sudo cp /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/certs/ca-bundle.crt
windows系統(tǒng)參考:
https://blog.csdn.net/ekey_code/article/details/78367535
導(dǎo)致該問題的原因在于沒有配置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
大家在使用過程中遇到問題,歡迎跟帖反饋,本貼持續(xù)更新……