RabbitMQ client example program using amqpcpp.
Test environment:
- ubuntu 16.04
- cmake 3.5.1
- rabbitmq-server 3.5.7
Build:
# mkdir build && cd build
# cmake .. && make
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/");