# DRb over SSL

**URL:** <https://www.ruby-forum.com/t/drb-over-ssl/95515>\
**Category:** Ruby\
**Created:** [June 4, 2006, 9:10pm UTC](https://www.ruby-forum.com/t/drb-over-ssl/95515 "2006-06-04T21:10:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pergesu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/22d042/32.png) [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Post date:** [June 4, 2006, 9:10pm UTC](https://www.ruby-forum.com/t/drb-over-ssl/95515/1 "2006-06-04T21:10:31Z")

</div>

I’m trying to set up DRb over SSL, following the guide at  
[http://segment7.net/projects/ruby/drb/DRbSSL/](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

---

<div class="post-metadata">

**Author:** ![pergesu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/22d042/32.png) [@pergesu](https://www.ruby-forum.com/u/pergesu)\
**Post date:** [June 4, 2006, 9:35pm UTC](https://www.ruby-forum.com/t/drb-over-ssl/95515/2 "2006-06-04T21:35:15Z")

</div>

On 6/4/06, Pat M. [removed\_email\_address@domain.invalid](mailto: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
