报错如下:

[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

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