Port 5671 is the AMQP (Advanced Message Queuing Protocol) TLS port – the encrypted equivalent of port 5672. RabbitMQ and other AMQP brokers serve encrypted connections on port 5671. Use port 5671 for all production message queue connections to protect credentials and message contents from network interception.
Port Number
5671
Protocol
TCP
Service
AMQP 0-9-1 (SSL/TLS)
Range
IANA Registered (1024–49151)
Test AMQPS TLS connection and inspect server certificate
openssl s_client -connect rabbit:5671 -showcertsList active RabbitMQ listeners (verify 5672 is disabled)
rabbitmqctl eval 'rabbit_networking:active_listeners().'Check TLS version and cipher in use
echo | openssl s_client -connect rabbit:5671 2>/dev/null | grep 'Protocol\|Cipher'Show TLS versions supported by the RabbitMQ node
rabbitmq-diagnostics tls_versionsrabbitmqctl eval 'rabbit_networking:active_listeners().'
openssl s_client -connect broker:5671
amqp-consume --url amqps://user:pass@broker:5671 -q myqueue catPort 5671 was registered for AMQP over TLS (AMQPS) alongside 5672 (plaintext AMQP) in the AMQP 0-9-1 specification era. RabbitMQ added TLS support early in its development. The implicit TLS model (like HTTPS on 443) was chosen over STARTTLS for simplicity. Amazon MQ and Azure Service Bus provide managed RabbitMQ/AMQP with mandatory TLS, eliminating the configuration burden.
How do I configure RabbitMQ for TLS-only?
In rabbitmq.conf: listeners.tcp = none (disables 5672), listeners.ssl.default = 5671, ssl_options.cacertfile = /path/ca.pem, ssl_options.certfile = /path/server.pem, ssl_options.keyfile = /path/server-key.pem, ssl_options.versions.1 = tlsv1.3, ssl_options.versions.2 = tlsv1.2, ssl_options.verify = verify_peer, ssl_options.fail_if_no_peer_cert = true. Restart RabbitMQ. Update all clients to use amqps:// URLs.
Do I need client certificates or is server-side TLS enough?
Server-side TLS (verify = verify_none): encrypts traffic but any client with valid credentials can connect. Good enough when: clients are trusted internal services with strong passwords. Mutual TLS (verify = verify_peer + fail_if_no_peer_cert = true): cryptographically verifies client identity. Required when: clients cross trust boundaries, you want zero-trust auth, or compliance mandates mutual authentication. Mutual TLS makes stolen credentials useless without the client certificate.