2017-01-23 125 views
0

摆脱谷歌的OAuth PHP的结果我使用WAMP服务器无法使用

Apache的版本:enter image description here 2.4.9 PHP版本:5.5.12

我使用codeingter,它是工作在爱网站一个月前我用localhost,但现在它给SSL认证错误。

+2

[file \ _get \ _contents()的可能重复:SSL操作失败,代码为1.更多](http://stackoverflow.com/questions/26148701/file-get-contents-ssl-operation-failed-与代码1和更多) – Ostin

回答

0

我最近在我的本地xampp环境中的CodeIgniter项目中实现了Google身份验证(google/apiclient版本2.0),并得到了相同的错误。我从这里下载cacert.pem解决了这个https://gist.github.com/VersatilityWerks/5719158/download

把它放在这里C:\xampp\php\extras\ssl\cacert.pem

然后编辑php.ini文件,并把这个线在本节

;;;;;;;;;;;;;;;;;;;; 
; php.ini Options ; 
;;;;;;;;;;;;;;;;;;;; 

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

记住后重新启动Apache服务器这个。真的希望这种方法也能在你的wamp服务器上运行,如果不是请评论。

+0

我的应用程序运行在Appengine谷歌PHP的 我使用xampp螺母仍然存在问题。 – Ramdrupal7