douningchang3610 2016-09-25 11:33
浏览 1526

cURL错误60:SSL证书无法获得本地颁发者证书:尝试了一切

I am trying to make a social authenication system via socialite in my Laravel app.But I am getting this error:

cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

I have downloaded several cacert.pem file,i have found on the internet (Basically,on stackoverflow from same problem).I add them to my

 C:\wamp\bin\apache\apache2.4.9\bin\php.ini
  C:\wamp\bin\php\php5.5.12\php.ini

file like this

    curl.cainfo = "C:/somewhere/cacert.pem"` 

    curl.cainfo = "C:\somewhere\cacert.pem"

   curl.cainfo = "c:/somewhere/cacert.pem"

   curl.cainfo = "c:\somewhere\cacert.pem"

I have also clicked the green WAMP icon and go to PHP->php.ini and tried the similar code.But all in vain.I am getting the error again and again.

  • 写回答

2条回答 默认 最新

  • dsavz66262 2016-09-26 09:55
    关注

    i) Download the 'cacert.pem' file from this link

    ii) Extract it & copy to the location you want.

    iii) Add this setting to your php.ini

    curl.cainfo=<path-to>cacert.pem
    

    In my case the location was, C:\wamp\bin\php\php5.6.24\extras\ssl. So the php.ini setting..

    curl.cainfo ="C:\wamp\bin\php\php5.6.24\extras\ssl\cacert.pem"

    Restart your web server, and it'll work !

    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog