Skip to content

Instantly share code, notes, and snippets.

@nicksieger
Created February 9, 2011 21:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicksieger/819366 to your computer and use it in GitHub Desktop.
Save nicksieger/819366 to your computer and use it in GitHub Desktop.
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
Copy link

donv commented Mar 24, 2012

Did you solve this, Nick?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment