Configure Xray to use the certificate and key

XRAY: Enabling and configuring TLS connection for RabbitMQ in Linux

AuthorFullName__c
Oleg Korol
articleNumber
000005794
ft:sourceType
Salesforce
FirstPublishedDate
2023-06-18T11:17:14Z
lastModifiedDate
2023-06-18
VersionNumber
1
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:
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.