且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

cURL 错误 60:SSL 证书 prblm:无法获取本地颁发者证书

更新时间: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.

  1. 在此处下载并提取 cacert.pem(干净的文件格式/数据)

  1. 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