[rabbitmq-discuss] Pika + SSL

Gavin M. Roy gmr at myyearbook.com
Thu Apr 7 00:59:44 BST 2011

Good news, it was fairly painless to implement. I've pushed the commits to https://github.com/pika/pika in master, if you'd like to test it out. I used the instructions on http://www.rabbitmq.com/ssl.html to setup SSL on the RabbitMQ server and tested against that.

Currently this only works with the BlockingConnection, SelectConnection and TornadoConnection.

There are two new files in the examples: demo_ssl_send.py and demo_ssl_receive.py.

The SSL connection syntax is fairly painless:

connection = SelectConnection(ConnectionParameters(host, 5671),

The ssl_options argument, if used, should be a dictionary of key-value pairs for the arguments of ssl.wrap_socket as found at:


If you don't mind, please clone the repo and install from source and let me know your results.

On Wednesday, April 6, 2011 at 6:50 PM, Gavin M. Roy wrote:
On Wednesday, April 6, 2011 at 6:25 PM, Matthew Long wrote:
> > Hello,
> > 
> > Is there a way to use the amqp python library pika with rabbitmq configured for ssl? I've looked at the code and the docs but there doesn't seem to be ssl support built in.
> Not currently, I can look and see what's involved. I'm hacking on Pika 2 right now, but give me a few hours and I'll let you know what I find. 
> > Does anyone know how we would go about using our application with pika amqp connecting to rabbitmq ssl without switching to py-amqplib? 
> > 
> > 
> > 
> Off the cuff, it's not possible without some sort of proxy. Just to confirm, which version of Pika are you using? 
> Gavin 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110406/b7b93564/attachment.htm>

More information about the rabbitmq-discuss mailing list