且构网

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

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

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

  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:\ 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