腾讯云 短信 安装phpsdk 报错cURL erro 60:(See http://curl.haxx.se/libcurl/c/libcurl-errors.html)
:cURL error 60: SSL certificate problem: unable to get local issuer certificate2. 编辑php配置文件php.ini。删除curl.cainfo配置前分号;3. 重启php-fpm, nginx。
·
报错如下:
[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
更多推荐
所有评论(0)