RPM gpg keys in Spacewalk server 

 

Here we will explain where these keys reside on the server and how to extract them with gpg command

There gpg keys are needed when we create and configure the channels, child channels 

Location:

/etc/pki/rpm-gpg/

[root@lpm-oss01-lpm01-app-01 ~]$ ls -l /etc/pki/rpm-gpg/
total 48
-rw-r--r--. 1 root root 1885 Nov 15 19:31 google-key.gpg
-rw-r--r--. 1 root root 975 Nov 15 19:31 google-rpm-package-key.gpg
-rw-r--r--. 1 root root 1063 Apr 3 16:00 pubkey.gpg
-rw-r--r--. 1 root root 1690 Sep 5 2019 RPM-GPG-KEY-CentOS-7
-rw-r--r--. 1 root root 1004 Sep 5 2019 RPM-GPG-KEY-CentOS-Debug-7
-rw-r--r--. 1 root root 1690 Sep 5 2019 RPM-GPG-KEY-CentOS-Testing-7
-rw-r--r--. 1 root root 1662 Sep 17 2019 RPM-GPG-KEY-EPEL-7
-rwxr-xr-x. 1 root root 1042 May 21 2019 RPM-GPG-KEY-spacewalk-2.9
-rwxr-xr-x. 1 root root 1063 May 21 2019 RPM-GPG-KEY-spacewalk-2.9-client
-rwxr-xr-x. 1 root root 1032 May 21 2019 RPM-GPG-KEY-spacewalk-java-packages
-rwxr-xr-x. 1 root root 1016 May 21 2019 RPM-GPG-KEY-spacewalk-nightly
-rwxr-xr-x. 1 root root 1032 May 21 2019 RPM-GPG-KEY-spacewalk-nightly-client

 

To extract the gpg rpm keys use the command below: (make sure 1st you cd to this dir: "/etc/pki/rpm-gpg")

[root@lpm-oss01-lpm01-app-01 rpm-gpg]# pwd
/etc/pki/rpm-gpg

[root@lpm-oss01-lpm01-app-01 rpm-gpg]# gpg --with-fingerprint RPM-GPG-KEY-CentOS-7
pub 4096R/F4A80EB5 2014-06-23 CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>
Key fingerprint = 6341 AB27 53D7 8A78 A7C2 7BB1 24C6 A8A7 F4A8 0EB5          <<==== (this is the key needed when setting up the spw channels and child channels)