The RabbitMQ configuration file, which by default is located at /etc/rabbitmq/rabbitmq.conf, will list the location of the Certificate Authority (CA) file, server certificate file, and private key file.
If the conf file in in the INI format, something like this should be displayed.
ssl_options.cacertfile = /path/to/ca.pem
ssl_options.certfile = /path/to/certificate.pem
ssl_options.keyfile = /path/to/key.pem
If the rabbitmq.conf file is in YAML format, and SSL is disabled, something like this should be defined.
{use_ssl, false}
On the other hand, if SSL is enabled, something like this should be defined.
[
{rabbit, [{ssl_options, [{cacertfile, "/path/to/ca.pem"},
{certfile, "/path/to/certificate.pem"},
{keyfile, "/path/to/key.pem"},
{verify, verify_peer},
{fail_if_no_peer_cert, true}]}]}
].
The cat command (on Linux) can be used to view the content of each file, which should return something like this.
]# cat certificate.pem
-----BEGIN CERTIFICATE-----
MIIG2zCCBcOgAwIBAgITFwAFD6 . . .
-----END CERTIFICATE-----
The openssl command with the X509, -text, and -noout options can be used to view the actual certificate data.
openssl x509 -text -noout -in certificate.pem