`
wuhuizhong
  • 浏览: 681182 次
  • 性别: Icon_minigender_1
  • 来自: 中山
社区版块
存档分类
最新评论

omniauth: Server certificate verification

    博客分类:
  • ROR
 
阅读更多

WARNING: making https request to https://www.google.com/accounts/o8/.well-known/host-meta?hd=www.google.com without verifying server certificate; no CA path was specified.

 

Solution:

1) in config/environment.rb

# Load certificate bundler
OpenID.fetcher.ca_file = "#{Rails.root}/config/ca-bundle.crt"

2) put ruby-openid-apps-discovery into config
$ cd config
$ wget https://github.com/skrat/ruby-openid-apps-discovery/raw/master/lib/ca-bundle.crt

 

http://toddsedano.blogspot.com/2010/05/integrating-openid-google-apps-and-ruby.html

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics