Celerity和https

时间:2011-03-14 07:28:37

标签: jruby

当我尝试连接到具有快速性的https网站时,我只获得SSLPeerUnverifiedExceptions lite

require "rubygems"
require "celerity"

browser = Celerity::Browser.new({:secure_ssl =>false,:proxy =>"localhost:3128"})
browser.goto('https://www.google.com')

生成这个:

NativeException:javax.net.ssl.SSLPeerUnverifiedException:peer未经过身份验证                           转到/home//Local/jruby-1.6.0.RC3/lib/ruby/gems/1.8/gems/celerity-0.8.8/lib/celerity/browser.rb:100   在/home//Local/jruby-1.6.0.RC3/lib/ruby/gems/1.8/gems/celerity-0.8.8/lib/celerity/container.rb:796上的rescue_status_code_exception                           转到/home//Local/jruby-1.6.0.RC3/lib/ruby/gems/1.8/gems/celerity-0.8.8/lib/celerity/browser.rb:99                         (root)at celtest.rb:5

有关如何使其发挥作用的任何建议?

0 个答案:

没有答案