报错如下:
[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
2. 编辑php配置文件php.ini
删除curl.cainfo配置前分号;
配置curl.cainfo绝对路径:
# php.ini
[curl]
curl.cainfo =D:\phpstudy_pro64\Extensions\php\php7.4.3nts\extras\ssl\cacert.pem
3. 重启php-fpm, nginx