📌  相关文章
📜  cURL 错误 60:SSL 证书问题:无法获取本地颁发者证书 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:58.449000             🧑  作者: Mango

代码示例1
This is just what works for me and I am writing just to remind me what I have
done when I will forget what I have done.

If it doesn't work I am sure you're going to find the solution

windows + Xampp solution:

1. go to "https://curl.se/docs/caextract.html" and download "cacert.pem"
2. Put it in this directory "C:\xampp\php\extras\ssl\cacert.pem"
3. go to "C:\PHP\php.ini" and put those two lines:
        - curl.cainfo = "C:\xampp\php\extras\ssl\cacert.pem"
        - openssl.cafile="C:\xampp\php\extras\ssl\cacert.pem"