Skip to content
Create a gist now

Instantly share code, notes, and snippets.

gem 'jruby-openssl'
GEM
specs:
bouncy-castle-java (1.5.0145.2)
jruby-openssl (0.7.1)
bouncy-castle-java
PLATFORMS
java
DEPENDENCIES
jruby-openssl
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
$ 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)'
@donv

Did you solve this, Nick?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.