Hi all,

I'm having issues getting my ruby client to connect over SSL.  I'm getting this 
error:

irb(main):014:0> c = Qpid::Messaging::Connection.new(:url => 'localhost:10000', 
:options=>{:transport=>'ssl'})
=> #<Qpid::Messaging::Connection:0x0000000197c290 @url="localhost:10000", 
@options={"transport"=>"ssl"}, 
@connection_impl=#<Cqpid::Connection:0x0000000197be08>>
irb(main):015:0> c.open()
MessagingError: Unknown protocol: ssl (qpid/client/Connector.cpp:52)

To establish a baseline, I've gotten SSL clients working in python, C++, and 
Java so far.  I'm working with the qpid_messaging 0.18.5 gem.

I have qpid-cpp-client-ssl and server-ssl installed.  RPM list:

$ rpm -qa | grep qpid | sort
python-qpid-0.18-9.el6.noarch
python-qpid-qmf-0.18-20.el6.x86_64
qpid-cpp-client-0.18-20.el6.x86_64
qpid-cpp-client-devel-0.18-20.el6.x86_64
qpid-cpp-client-ssl-0.18-20.el6.x86_64
qpid-cpp-server-0.18-20.el6.x86_64
qpid-cpp-server-ssl-0.18-20.el6.x86_64
qpid-qmf-0.18-20.el6.x86_64
qpid-tools-0.18-10.el6.noarch

I've tried setting the following so that the cqpid extension (and presumably 
the qpid library underneath) would pick these up:

ENV['QPID_SSL_CERT_DB'] = '/nfs_home/wholevinski/ssl_test/client_db'
ENV['QPID_SSL_CERT_NAME'] = 'QpidCppClient'
ENV['QPID_SSL_CERT_PASSWORD_FILE']='/nfs_home/wholevinski/ssl_test/qpid-broker-pfile'
ENV['QPID_LOAD_MODULE'] = '/usr/lib64/qpid/client/sslconnector.so'

I don't think I've reached a point where the first 3 ENV variables are even 
relevant yet though; my hunch is that the sslconnector.so isn't being loaded, 
and the protocolRegistry inside qpid/client/Connector.cpp isn't updated.

If anyone has any experience with SSL + a ruby client and has any ideas, or 
insight into what I might be doing wrong, please let me know.

Thanks!
Wes

Reply via email to