public
Created

  • Download Gist
Gemfile
Ruby
1
gem 'jruby-openssl'
jossl.rb
Ruby
1 2 3 4 5 6 7 8 9
require 'rubygems'
# require 'bundler/setup'
require 'jruby-openssl'
require 'openssl'
require 'net/https'
 
http = Net::HTTP.new('s3.amazonaws.com', 443)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
output.txt
1 2 3 4
$ jruby -v jossl.rb
jruby 1.6.0.RC1 (ruby 1.8.7 patchlevel 330) (2011-02-09 fca8dfc) (Java HotSpot(TM) Client VM 1.6.0_22) [darwin-i386-java]
/Users/nicksieger/Projects/ruby/jruby/lib/ruby/1.8/net/https.rb:148:in `verify_mode=': private method `verify_mode=' called for #<OpenSSL::SSL::SSLContext:0x19eef79> (NoMethodError)
from jossl.rb:8:in `(root)'

Did you solve this, Nick?

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.