报错:cURL error 60: SSL certificate problem: unable to get local
情景:在微信上的访问获取手机号的 接口报错(PHP后台访问微信指定https的API)解决:
1. 从 https://curl.haxx.se/docs/caextract.html 上下载cacert.pem ;
2. 找到PHP的安装位置 把文件找个相应PHP版本下;
3. PHP配置项中 删除 curl.cainfo 配置项前的分号注释符(;),值设置为保存的证书文件 cacert.pem 的绝对路径。
例如curl.cainfo = g:/BtSoft/php/73/cacert-2023-01-10.pem 前面的
4. 重启PHP
页:
[1]