OpenSSL & Ruby 1.8

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::DRbConnError)
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

<:((><
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,792
Messages
2,569,639
Members
45,351
Latest member
RoxiePulli

Latest Threads

Top