Next, we’ll need to configure Xray to connect to RabbitMQ using a certificate and key for SSL/TLS encryption. Modify rabbitMq section in Xray’s system.yaml file located in ${XRAY_HOME}/var/etc/system.yaml:
These lines enable SSL/TLS for RabbitMQ inside JFrog Xray and configure the paths to the client certificate(certFilePath), private key(certKeyFilePath), and CA certificate (certCaFilePath). Port 5671 in url as specified in rabbitmq.conf in the previous step to establish SSL/TLS connections, by default RabbitMQ will always be running “autoStop” will make sure that RabbitMQ stops/starts along with the Xray service.
rabbitMq: url: amqps://localhost:5671 autoStop: true certFilePath: ${XRAY_HOME}/var/data/server/certs/client_xray_certificate.pem certKeyFilePath: ${XRAY_HOME}/var/data/server/certs/client_xray_key.pem certCaFilePath: ${XRAY_HOME}/var/data/server/certs/ca_certificate.pem
These lines enable SSL/TLS for RabbitMQ inside JFrog Xray and configure the paths to the client certificate(certFilePath), private key(certKeyFilePath), and CA certificate (certCaFilePath). Port 5671 in url as specified in rabbitmq.conf in the previous step to establish SSL/TLS connections, by default RabbitMQ will always be running “autoStop” will make sure that RabbitMQ stops/starts along with the Xray service.