N
Nathaniel Talbott
I'm trying to use the OpenSSL extension included in Ruby 1.8preview6 with
DRb, and having difficulty. First of all, the DRb included in Ruby does not
appear to have support for SSL, although the package at
http://www2a.biglobe.ne.jp/~seki/ruby/druby.html does. Second, even if I use
the latter package instead of the built in DRb, I get the following error
(when running the drbssl sample):
C:\ruby-libs\drb-2.0.4\sample>ruby drbssl_c.rb
asdf
c:/ruby/1.8p5/lib/ruby/site_ruby/1.8/drb/drb.rb:170:in `open':
drbssl://localhost:3456 -
#<NoMethodError: undefined method `ca_cert=' for
#<OpenSSL::SSL::SSLSocket:0x2bd1058>>
(DRb:
RbConnError)
from c:/ruby/1.8p5/lib/ruby/site_ruby/1.8/drb/drb.rb:163:in `each'
from c:/ruby/1.8p5/lib/ruby/site_ruby/1.8/drb/drb.rb:163:in `open'
from c:/ruby/1.8p5/lib/ruby/site_ruby/1.8/drb/drb.rb:468:in
`initialize'
from c:/ruby/1.8p5/lib/ruby/site_ruby/1.8/drb/drb.rb:451:in `new'
from c:/ruby/1.8p5/lib/ruby/site_ruby/1.8/drb/drb.rb:451:in `open'
from c:/ruby/1.8p5/lib/ruby/site_ruby/1.8/drb/drb.rb:407:in
`method_missing'
from drbssl_c.rb:18
My guess is that the interface for OpenSSL changed between when this version
of DRb was made and when OSSL was included in 1.8. I'm going to continue
investigating, but I thought maybe this should be corrected (fix DRb and add
DRb SSL support to 1.8) before the 1.8.0 release. Oh, and if anyone has an
easy way to fix it for now, I'd be extremely grateful
.
Thanks,
Nathaniel
<
(><
DRb, and having difficulty. First of all, the DRb included in Ruby does not
appear to have support for SSL, although the package at
http://www2a.biglobe.ne.jp/~seki/ruby/druby.html does. Second, even if I use
the latter package instead of the built in DRb, I get the following error
(when running the drbssl sample):
C:\ruby-libs\drb-2.0.4\sample>ruby drbssl_c.rb
asdf
c:/ruby/1.8p5/lib/ruby/site_ruby/1.8/drb/drb.rb:170:in `open':
drbssl://localhost:3456 -
#<NoMethodError: undefined method `ca_cert=' for
#<OpenSSL::SSL::SSLSocket:0x2bd1058>>
(DRb:
from c:/ruby/1.8p5/lib/ruby/site_ruby/1.8/drb/drb.rb:163:in `each'
from c:/ruby/1.8p5/lib/ruby/site_ruby/1.8/drb/drb.rb:163:in `open'
from c:/ruby/1.8p5/lib/ruby/site_ruby/1.8/drb/drb.rb:468:in
`initialize'
from c:/ruby/1.8p5/lib/ruby/site_ruby/1.8/drb/drb.rb:451:in `new'
from c:/ruby/1.8p5/lib/ruby/site_ruby/1.8/drb/drb.rb:451:in `open'
from c:/ruby/1.8p5/lib/ruby/site_ruby/1.8/drb/drb.rb:407:in
`method_missing'
from drbssl_c.rb:18
My guess is that the interface for OpenSSL changed between when this version
of DRb was made and when OSSL was included in 1.8. I'm going to continue
investigating, but I thought maybe this should be corrected (fix DRb and add
DRb SSL support to 1.8) before the 1.8.0 release. Oh, and if anyone has an
easy way to fix it for now, I'd be extremely grateful
Thanks,
Nathaniel
<