更新时间:2022-06-15 08:43:58
如果您在Windows上使用Xampp,我从这里,如果Google首先向您显示此问题,将会很有帮助.
If you are on Windows using Xampp, I am stealing a better answer from here, would be helpful if Google shows you this question first.
在此处下载并提取cacert.pem(干净的文件格式/数据)
Download and extract for cacert.pem here (a clean file format/data)
将其放入:
Put it in :
C:\ xampp \ php \ extras \ ssl \ cacert.pem
C:\xampp\php\extras\ssl\cacert.pem
将此行添加到您的php.ini
Add this line to your php.ini
curl.cainfo ="C:\ xampp \ php \ extras \ ssl \ cacert.pem"
curl.cainfo = "C:\xampp\php\extras\ssl\cacert.pem"
重新启动您的Web服务器/Apache
restart your webserver/Apache