Hi,
I'm having a test case with rabbitmq 4.05 (latest docker.io/library/rabbitmq:4.0-management-alpine docker image cb4b6dc2960e ) running with a self signed TLS certificate. Running on Ubuntu 24.04 with amq-tools Version: 0.11.0-1build2
openssl correctly shows the certificate running on port 5671.
ruby with the bunny library can successfully connect both
plaintext with url amqp://name:password@ipaddress/test to port 5672 and
encrypted with amqps://name:password@ipaddress/test to port 5671
the amqp-tools do work with plaintext as well
amqp-consume -u "amqp://name:password@ipaddress/test" -q queuename cat
but not with tls. Neither
amqp-consume -u "amqps://name:password@ipaddress/test" -q queuename cat
nor
amqp-consume -u "amqps://name:password@ipaddress/test" -q queuename --cacert=certfilepath cat
do work. It just says
opening socket to ipaddress:5671
and terminates without further comment, and exist status 1
No error message, no verbose mode, no flag to not verify the cert, just no way to start debugging.
Would it be possible to improve debugging and issue some information about why it fails?
And shouldn't it be able to connect to a server with self-signed certificates?
best regards
Hi,
I'm having a test case with rabbitmq 4.05 (latest docker.io/library/rabbitmq:4.0-management-alpine docker image cb4b6dc2960e ) running with a self signed TLS certificate. Running on Ubuntu 24.04 with amq-tools Version: 0.11.0-1build2
openssl correctly shows the certificate running on port 5671.
ruby with the bunny library can successfully connect both
plaintext with url amqp://name:password@ipaddress/test to port 5672 and
encrypted with amqps://name:password@ipaddress/test to port 5671
the amqp-tools do work with plaintext as well
amqp-consume -u "amqp://name:password@ipaddress/test" -q queuename cat
but not with tls. Neither
amqp-consume -u "amqps://name:password@ipaddress/test" -q queuename cat
nor
amqp-consume -u "amqps://name:password@ipaddress/test" -q queuename --cacert=certfilepath cat
do work. It just says
opening socket to ipaddress:5671
and terminates without further comment, and exist status 1
No error message, no verbose mode, no flag to not verify the cert, just no way to start debugging.
Would it be possible to improve debugging and issue some information about why it fails?
And shouldn't it be able to connect to a server with self-signed certificates?
best regards