Created
February 9, 2011 21:44
-
-
Save nicksieger/819366 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'jruby-openssl' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GEM | |
specs: | |
bouncy-castle-java (1.5.0145.2) | |
jruby-openssl (0.7.1) | |
bouncy-castle-java | |
PLATFORMS | |
java | |
DEPENDENCIES | |
jruby-openssl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you solve this, Nick?