Using X509 Certificate in DRb SSL Config throws an exception
------------------------------------------------------------

                 Key: JRUBY-2471
                 URL: http://jira.codehaus.org/browse/JRUBY-2471
             Project: JRuby
          Issue Type: Bug
          Components: OpenSSL
    Affects Versions: JRuby 1.1.1
         Environment: Ubuntu Hardy Heron 64bit on Intel Core 2 Duo
JRuby 1.1.1
jruby-openssl 2.2.1
            Reporter: Mikko Ruohola
         Attachments: x509.trace

Code below produces and error described in the attachemnt x509.trace, Removing 
SSLCertificate line prevents exception, but is clearly broken, because this 
configuration worked ok with ruby.

--- Code ---
config = {
        :SSLVerifyMode => OpenSSL::SSL::VERIFY_PEER,
        :SSLCACertificateFile => "ssl/CA/cacert.pem",
        :SSLPrivateKey =>
        
OpenSSL::PKey::RSA.new(File.read(File.join(File.dirname(__FILE__),"../config/ssl/polarfox/polarfox_keypair.pem"))),
        :SSLCertificate =>
        
OpenSSL::X509::Certificate.new(File.read(File.join(File.dirname(__FILE__),"../config/ssl/polarfox/cert_polarfox.pem"))),
}
DRb.start_service(nil, nil, config)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to