~~~
curl: (77) error setting certificate verify locations:CAfile: /etc/pki/tls/certs/ca-bundle.crtCApath: none
如果目標(biāo)目標(biāo)不存在,則需要通過(guò)運(yùn)行
sudo mkdir -p /etc/pki/tls/certs
通過(guò)運(yùn)行將證書(shū)復(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)致該問(wèn)題的原因在于沒(méi)有配置curl.cainfo,該配置位于php.ini中。
解決方案:
1)下載cacert.pem
https://curl.haxx.se/ca/cacert.pem
2)配置php.ini
[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
curl.cainfo = 【你的絕對(duì)路徑】
原文鏈接:https://blog.csdn.net/loophome/article/details/83112364