天天看點

騰訊雲 短信 安裝phpsdk 報錯cURL erro 60:(See http://curl.haxx.se/libcurl/c/libcurl-errors.html)

報錯如下:

[TencentCloud\Common\Exception\TencentCloudSDKException]

code: message:cURL error 60: SSL certificate problem: unable to get local issuer certificate

1. 下載下傳​​cacert.pem​​​到php安裝目錄

cd D:\phpstudy_pro64\Extensions\php\php7.4.3nts\extras\ssl

D:

安裝​​wget​​添加到環境變量,或者把wget.exe放到C:\windows

wget https://curl.haxx.se/ca/cacert.pem --no-check-certificate -O cacert.pem