Starting with RealVNC Connect 8.5.0 and RealVNC Server and Classic Viewer 7.18.0, RealVNC signs its RPM packages with a GPG key so you can verify that a package was built by RealVNC and has not been tampered with since it was released. This article explains how to import the RealVNC signing key and use it to verify an RPM package before installing it.
Before you begin
You will need:
- The
rpmutility (pre-installed on RPM-based distributions such as RHEL and Rocky Linux) - The downloaded RealVNC Connect RPM package you want to verify
Import the RealVNC signing key
The RPM utility maintains its own keyring, separate from any personal GPG keyring. You must import the RealVNC public key into the RPM keyring before verification is possible.
-
Download the RealVNC public signing key:
curl -O https://downloads.realvnc.com/download/file/realvnc-signing.asc -
Import the key into the RPM keyring:
sudo rpm --import realvnc-signing.ascNo output is produced on success.
-
Confirm the key was imported by listing keys in the RPM database:
rpm -qa gpg-pubkey* --qf "%{name}-%{version}-%{release} %{summary}\n"You should see an entry for RealVNC Limited in the output.
The key can also be imported directly from the URL without downloading it first: sudo rpm --import https://downloads.realvnc.com/download/file/realvnc-signing.asc
Verify the RPM package
-
Run the following command, replacing
realvnc-package.rpmwith the filename of your downloaded package:rpm -K realvnc-package.rpm - Check the output:
-
Successful verification: the output ends with
digests signatures OK, confirming the package is authentic and unmodified. -
Failed verification: the output contains
SIGNATURES NOT OKorDIGESTS NOT OK. Do not install the package. Download it again from the RealVNC website and re-verify.
-
Successful verification: the output ends with
Removing the key
If you need to remove the RealVNC key from the RPM keyring (for example, to re-import an updated key), first identify the key package name:
rpm -qa gpg-pubkey* --qf "%{name}-%{version}-%{release} %{summary}\n"Then remove it using the name shown in the output:
sudo rpm -e gpg-pubkey-XXXXXXXX-XXXXXXXX
Comments
Article is closed for comments.