This guide covers RabbitMQ release packages signing and how to verify the signatures on downloaded release artifacts.

Release signing allows users to verify that the artifacts they have downloaded were published by a trusted party (such as a team or package distribution service). This can be done using GPG command line tools. Package management tools such as apt and yum also verify repository signatures.

Signing Keys

RabbitMQ release artifacts, both binary and source, are signed using GnuPG and our release signing key.

Services that distribute packages can do signing on behalf of the publisher. Package Cloud is one such service used by RabbitMQ. Users who provision packages from Package Cloud must import the Package Cloud-provided signing keys instead of those used by the RabbitMQ team.

Importing Signing Keys

With GPG

Before signatures can be verified, RabbitMQ signing key must be downloaded. The key can be obtained directly or using or the SKS keyservers pool. The direct download method is recommended because most key servers are prone to overload, abuse and attacks.

Direct Download

The key is distributed via GitHub and

curl -L --output rabbitmq-release-signing-key.asc
gpg --import rabbitmq-release-signing-key.asc

Using a Key Server

The key can be imported from

gpg --keyserver "hkps://" --recv-keys "0x0A9AF2115F4687BD29803A206B73A36E6026DFCA"

In case the above key servers are overloaded, under attack or unavailable for any other reason, an alternative server can be used:

gpg --keyserver "" --recv-keys "0x0A9AF2115F4687BD29803A206B73A36E6026DFCA"
gpg --keyserver "" --recv-keys "0x0A9AF2115F4687BD29803A206B73A36E6026DFCA"
gpg --keyserver "" --recv-keys "0x0A9AF2115F4687BD29803A206B73A36E6026DFCA"
gpg --keyserver "" --recv-keys "0x0A9AF2115F4687BD29803A206B73A36E6026DFCA"

With apt

On Debian and Ubuntu systems, assuming that apt repositories are used for installation, trusted repository signing keys must be added to apt-key before any packages can be installed.

This can be done using key servers or (for the RabbitMQ main signing key) a direct download.

Direct Download

Main RabbitMQ signing key is distributed via GitHub and

curl -fsSL | sudo apt-key add -

Using a Key Server

The same main RabbitMQ signing key can be imported from

apt-key adv --keyserver "hkps://" --recv-keys "0x0A9AF2115F4687BD29803A206B73A36E6026DFCA"

or the SKS key server pool:

apt-key adv --keyserver "" --recv-keys 0x0A9AF2115F4687BD29803A206B73A36E6026DFCA

When using the Team RabbitMQ modern Erlang PPA and PackageCloud apt repository, two more keys need to be added:

## Team RabbitMQ's main signing keys
sudo apt-key adv --keyserver "hkps://" --recv-keys "0x0A9AF2115F4687BD29803A206B73A36E6026DFCA"
## Launchpad Erlang PPA key
sudo apt-key adv --keyserver "" --recv-keys "F77F1EDA57EBB1CC"
## PackageCloud RabbitMQ repository key
sudo apt-key adv --keyserver "" --recv-keys "F6609E60DC62814E"

With RPM

On RPM-based systems (RHEL, Fedora, CentOS), assuming that yum repositories are used for installation, rpm --import should be used to import the key.

Direct Download

The key is distributed via GitHub and

rpm --import

Verifying Signatures

To check signatures for the packages, download the RabbitMQ signing key and a signature file. Signature files use the .asc extension that follows their artifact filename, e.g. the signature file of rabbitmq-server-generic-unix-3.7.8.tar.xz would be rabbitmq-server-generic-unix-3.7.8.tar.xz.asc.

Then use gpg --verify:

gpg --verify [filename].asc [filename]

Here's an example session, after having retrieved a RabbitMQ source archive and its associated detached signature from the download area:

gpg --verify rabbitmq-server_3.7.15-1_all.deb.asc rabbitmq-server_3.7.15-1_all.deb
gpg: Signature made Sun May 19 03:17:41 2019 MSK
gpg:                using RSA key 6B73A36E6026DFCA
gpg: using subkey 0xEDF4AE3B59B046FA instead of primary key 0x6B73A36E6026DFCA
gpg: using PGP trust model
gpg: Good signature from "RabbitMQ Signing Key <>" [full]
Primary key fingerprint: 4E30 C634 2FB4 AF5C 6334  2330 79A1 D640 D80A 61F0
     Subkey fingerprint: 5EC4 26E8 A6F3 523D D924  8FC8 EDF4 AE3B 59B0 46FA
gpg: binary signature, digest algorithm SHA512

If the signature is invalid, a "BAD signature" message will be emitted. If that's the case the origin of the package, the signature file and the signing key should be carefully verified. Packages that fail signature verification must not be used.

If the signature is valid, you should expect a "Good signature" message; if you've not signed our key, you will see a "Good signature" message along with a warning about our key being untrusted.

If you trust the RabbitMQ signing key you avoid the warning output by GnuPG by signing it using your own key (to create your private key run gpg --gen-key):

gpg --sign-key 0x0A9AF2115F4687BD29803A206B73A36E6026DFCA

Package Cloud

Package Cloud is a hosted package distribution service that uses their own signing keys to sign the artifacts uploaded to it. The key(s) then must be imported with GPG, apt-key and similar tools. Package Cloud provides repository setup script that include signing key import.

To import the key:

# import the PackageCloud key
curl -L \
  -O packagecloud-rabbitmq-key.asc -s
gpg --import packagecloud-rabbitmq-gpg-key.asc

After importing the key please follow the Package Cloud repository setup instructions.

Getting Help and Providing Feedback

If you have questions about the contents of this guide or any other topic related to RabbitMQ, don't hesitate to ask them on the RabbitMQ mailing list.

Help Us Improve the Docs <3

If you'd like to contribute an improvement to the site, its source is available on GitHub. Simply fork the repository and submit a pull request. Thank you!