Showing posts with label rabbitmq. Show all posts
Showing posts with label rabbitmq. Show all posts

May 19, 2014

Create blocking connection with pika

Hi,

That what i did, watch that the port is not a string but integer parameter.

 pika.BlockingConnection(pika.ConnectionParameters(host='localhost',port=6672))



Dor

Apr 10, 2014

RabbitMQ 3.3.0 SSL

If you want the rabbitmq manager to work with ssl only put this in the rabbitmq.config

{rabbitmq_management,
  [{listener, [{port,     15672},
                  {ssl,      true},
                 {ssl_opts, [{cacertfile, "/home/me/testca/cacert.pem"},
                            {certfile,   "/home/me/testca/server/cert.pem"},
                              {keyfile,    "/home/me/testca/server/key.pem"},
                              {verify, verify_peer},
                              {fail_if_no_peer_cert, false }]}]}]},


Before doing so, you need to use the openssl to create the necessary certificates.
Beware to use the latest patch to the openssl that includes the bug fix for heartbeat bug.
Where ? you can read here, it's one possible example.


Mar 9, 2014

Ubuntu , When Trying to execute rabbitmq-server failed due to "line 85: erl: command not found"

If you get this, you need to install the latest stable (preferred) version of erlang


Download the deb from here : https://www.erlang-solutions.com/downloads/download-erlang-otp

Execute by "dpkg -i filename.deb"


Dor