doumao1887 2016-11-03 12:32
浏览 111

PHP 7.0 cURL无法正常工作 - Windows 10上的WAMP 64位[重复]

This question already has an answer here:

cURL is not working when I run curl on my WAMP server. Anyone know how to activate this for php 7.0+?

I have tried to uncomment extension=php_curl.dll in php.ini

Here is my error message:

cURL Error #:SSL certificate problem: unable to get local issuer certificate
</div>
  • 写回答

1条回答 默认 最新

  • douqiao3930 2016-11-03 13:12
    关注
    1. Download ca-bundle.crt from https://github.com/bagder/ca-bundle/blob/e9175fec5d0c4d42de24ed6d84a06d504d5e5a09/ca-bundle.crt
    2. Put the file in c:\wamp64\
    3. Change php.ini to the following

      curl.cainfo="C:/wamp64/ca-bundle.crt"

      openssl.cafile="C:/wamp64/ca-bundle.crt"

    This worked for me.

    Note : You have to restart server after doing above process.

    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?