/rmqclientssl

RabbitMQ client example program using amqpcpp.

Primary LanguageC++Apache License 2.0Apache-2.0

rmqclient

RabbitMQ client example program using amqpcpp.

Quick Start

Test environment:

  • ubuntu 16.04
  • cmake 3.5.1
  • rabbitmq-server 3.5.7

Build:

# mkdir build && cd build
# cmake .. && make

Secure Connect with SSL

Certificate file dependency, make your own certificate file and replace the listed file:

/etc/rabbitmq/ssl/ca/cacert.pem
/etc/rabbitmq/ssl/client/rabbitmq_client.cert.pem
/etc/rabbitmq/ssl/client/rabbitmq_client.key.pem

Enable:

In AMQP::Address object, using the amqps:// protocol:

AMQP::Address address("amqps://guest:guest@localhost/");

Reference