更新时间:2022-06-15 08:43:28
如果你在 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)
https://curl.haxx.se/docs/caextract.html
放入:
Put it in :
C:xamppphpextrassslcacert.pem
C:xamppphpextrassslcacert.pem
将此行添加到您的 php.ini
Add this line to your php.ini
curl.cainfo = "C:xamppphpextrassslcacert.pem"
curl.cainfo = "C:xamppphpextrassslcacert.pem"
重启你的网络服务器/Apache
restart your webserver/Apache