Forum: Ruby DRb over SSL

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Pat M. (Guest)
on 2006-06-04 23:10
(Received via mailing list)
I'm trying to set up DRb over SSL, following the guide at
http://segment7.net/projects/ruby/drb/DRbSSL/.  When I create the
DRbObject though, I get the error "drbssl://localhost:1111 -
#<OpenSSL::SSL::SSLError: unknown protocol>"

I'm requiring drb and drb/ssl, and you can see the connection string
I'm using.  What's wrong with this?

Pat
Pat M. (Guest)
on 2006-06-04 23:35
(Received via mailing list)
On 6/4/06, Pat M. <removed_email_address@domain.invalid> wrote:
>
Okay I've gotten past that error.  Now I'm getting
"drbssl://localhost:1111 - #<OpenSSL::SSL::SSLError: sslv3 alert
unsupported certificate>"

My config for the server is
config = {
      :SSLVerifyMode => OpenSSL::SSL::VERIFY_PEER |
OpenSSL::SSL::VERIFY_FAIL_IF_NO_PEER_CERT,
      :SSLPrivateKey =>
OpenSSL::PKey::RSA.new(File.read("specs/certs/localhost/localhost_keypair.pem")),
      :SSLCertificate =>
OpenSSL::X509::Certificate.new(File.read("specs/certs/localhost/cert_localhost.pem")),
      :SSLCACertificateFile => "specs/certs/CA/cacert.pem"
    }

and my config for the client is
config = {
      :SSLVerifyMode => OpenSSL::SSL::VERIFY_PEER,
      :SSLCACertificateFile => ("specs/certs/CA/cacert.pem"),
      :SSLPrivateKey =>
          OpenSSL::PKey::RSA.new(File.read("specs/certs/username/username_keypair.pem")),
        :SSLCertificate =>
          OpenSSL::X509::Certificate.new(File.read("specs/certs/username/cert_username.pem"))
    }

It prompts me for the password when I create the server.  Then it
gives me that "unsupported certificate error" when I try to make a
remote call.  Any ideas?

Pat
This topic is locked and can not be replied to.