在阿里云短信开发好之后,点击发送短信提示:curl error 60: ssl certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)
问题主要是由于缺少根证书,然后curl无法访问https
解决方案:给服务器增加一个cacert.pem根证书


1.下载证书 https://curl.haxx.se/ca/cacert.pem
2.上传服务器,任意位置
比如:D:\php\cacert.pem
3.打开PHP.ini在源码生成app软件最后一行写入curl.cainfo=”D:\php\cacert.pem”
只有保存,并重启服务器


编辑:娜娜,如若转载,请注明出处:https://www.yimenapp.com/kb-yimen/4229/
部分内容来自网络投稿,如有侵权联系立删