donglv5269 2017-01-23 14:05
浏览 37

无法通过使用谷歌oauth php获得结果

i am using wamp server

Apache Version : enter image description here2.4.9 PHP Version : 5.5.12

i am using codeingter , it is working in love site a month ago i used this in localhost but now it is giving SSL certification error.

  • 写回答

1条回答 默认 最新

  • doujiu3097 2017-01-23 15:22
    关注

    I recently implemented the google authentication (google/apiclient version 2.0) in my CodeIgniter project on my local xampp environment and got the same error. I solved this by downloading cacert.pem from here https://gist.github.com/VersatilityWerks/5719158/download

    put it here C:\xampp\php\extras\ssl\cacert.pem

    then edit php.ini file and put this line in this section

    ;;;;;;;;;;;;;;;;;;;;
    ; php.ini Options  ;
    ;;;;;;;;;;;;;;;;;;;;
    
    curl.cainfo = "C:\xampp\php\extras\ssl\cacert.pem"
    

    Remember to restart your apache server after this. Really hope that this method will work on your wamp server too, if not please comment.

    评论

报告相同问题?

悬赏问题

  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100