[前][次][番号順一覧][スレッド一覧]

rails:3012

From: Stoyan Zhekov <stoyan@g...>
Date: Wed, 28 Jan 2009 17:22:58 +0900
Subject: [rails:3012] Re: SSLでのOpenID認証について

2009/1/28 Masuda <msd.456@g...>:

> OpenID::DiscoveryFailure
> Failed to fetch identity URL https://mixi.jp/ : Error connecting to
> SSL URL https://mixi.jp/: certificate verify failed
> となり、認証に失敗してしまいます。

require 'net/https'

module Net
  class HTTP
    alias :orig_use_ssl= :use_ssl=
    def use_ssl=(flag)
      self.orig_use_ssl=(flag)
      @ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONE
    end

    def verify_mode=(m)
      # Ignore, don't let open-uri reconfigure verify mode
    end
  end
end

--
ML: rails@r...
使い方: http://QuickML.com/

[前][次][番号順一覧][スレッド一覧]

      3006 2009-01-23 12:56 [msd.456@g...        ] SSLでのOpenID認証について               
   @  3008 2009-01-24 09:53 ┗[kzhr.nsym@g...      ]                                       
      3011 2009-01-28 03:41  ┗[msd.456@g...        ]                                     
->    3012 2009-01-28 09:22   ┗[stoyan@g...         ]