How to manage RPM keyring

Today, I will show you how to manage RPM keyring on CentOS operating system using a real life example.

Operating system.

$ cat /etc/centos-release
CentOS Linux release 8.0.1905 (Core)

Download public key for desired repository.

I will deliberately use broken (i.e. that depends on the point of view) Blackfire repository key.
$ curl --silent https://packages.blackfire.io/gpg.key -o gpg.key

Display downloaded public key.

$ cat gpg.key 
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.11 (GNU/Linux)

mQINBFu7gUMBEACmPbkUkMLL8kdz5S6+q3NNstxgpb9Rm0lJ47binozKZhWTtVep
mOCmnPwtjLTfiVS8xaV8xyD3MHuQLwRmK9PhbhHTyR5tlqo4FTK40KUYPZ/QQPfD
0+ZHnyqhh5Sk98PPPHhpMGLF1bUvY/fs4A1L5QSRY9AZvcgxhtxL4hxETdK+ua1L
vOK5aDiQUy6BG8jgB1g3lcg3VowraEKgyiHXF/wzdxdrCCzlGS1tNnl3ypSRU6Ac
A6qdSEmFJxdZRlAvQ7iitJNgLD2bCb3MLmQIgxZ1E++WSdvS09u8LRYySNasXffp
5L/bLBw1De+/2XPj0q/EwKdKuYPql2uye0B43pMhCQ+AqHxQdDAFw7Lf6vYn53ss
YO1nP6E3KCOFnjN3xcQWwKq+UyfU/JwRBKnXAdeckpv/1U3MgHsMIMSGKYIN+eOB
5P3v8tsBMdeL+8ovoUNwjFO1WPe9vgXG/2G2Ij+0hX7lUTb/3MqqgHngRr4CvHXo
CBch/iWKQ1OpkjRRkqVENdAZtHMUOqL0iTl6vT1VvwKuyUy2KA7C9+JGCodlCbPM
mCNtkpiIpZh5ScFVzC11uObB6w1Oh6QOaGPaQ42PEcsb2oyCBHY18nXjE0ifUmfg
N/G6qcHHqXrjeVxb3vFFXPvFATChVQJWaFLm9lcjOjjEgzF2EstyoitiXQARAQAB
tHJodHRwczovL3BhY2thZ2VjbG91ZC5pby9zZW5zaW9sYWJzL3NlbnNpb2xhYnMg
KGh0dHBzOi8vcGFja2FnZWNsb3VkLmlvL2RvY3MjZ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Ag93CyV+aFPzfSowY8zbU
a/p4fu7+pl0+u+e9h6MhsMpgDLvdRGoQrW4LlGsOVJUubbvUQPACgQJL8NkBdiCC
H3ZNqg5vX9zUnt+j45cue3sR4CWEtCHAwysuDJcvVI8Afh5whWSlAqKZt1Mfvg+b
qUjLo00ziE7QJiFCGvMQAIokfaP/h4luiWK5chlfcHUreDbVLEi91EnBl++QwZkp
LD+16UJHC7vgFfa0IAD4iK8+JId4AHBLGDXxh/6co94FxTVDkZoJByfm9/lXU5Po
qaB8Puqms+I6tPTQRcONfy9g3N+LVFJShs9jqMyDQoJaTU6/MPOX3Aq19jwBBtX/
vVnEA368AIgO/T0owsY/ZXaC7y08bbdkiH1nbFsPIDN2ocSTuKMJQuho7JqX983r
NCsNJXwFRibhCEWZg935AYTIb5ybhInP3zvnxyr2eFWSePpo9JIV+BpaoUMTxms2
mgDEC0vYozzNH9ZxYOK49C2d81BznF6cFreA5ke3hg43SEyMzs3m/z2hg5STi6Iw
dDl0KMSuw7g6iQmo97tnaWH7L76NgZqWvhJ/cbXtHLQMFfNL4Qda1QTAwPRBsBed
LjvSbOdQQIVPNReUNdzuBimf5+mVErYi2KljK69sHNJv+cdqrkuMOcIb1CNJLvAp
b39q7geFBYi7dvXyhSIbOfEYfsoWuirwG4lOShbyRtwJ1ftxR2lkagkBgjeNHOWr
rF13JxI2hkq29IONdJvVCp4F1NCLkClERO5fqm2TE39UYNQ0uWaoO7XaFaGPwaYF
J5e0Bg8zj5H9XaoiAwe9t8BFGpKxFRWInwXlL5qWdm0qjTcMJU87K1pPkc5Wm/en
=RSrc
-----END PGP PUBLIC KEY BLOCK-----

Public key details.

$ gpg --dry-run --import-options import-show --import gpg.key 
pub   rsa4096 2018-10-08 [SCEA]
      9B64BFB189197267DD269B29DFD7480747312329
uid                      https://packagecloud.io/sensiolabs/sensiolabs (https://packagecloud.io/docs#gpg_signing) <[email protected]>
sub   rsa4096 2018-10-08 [SEA]

gpg: Total number processed: 1

This public key cannot be imported.

$ sudo rpm --test --import gpg.key 
error: gpg.key: key 1 not an armored public key.

This is because it is missing new line character at the end of file.

$ hexdump -C gpg.key 
00000000  2d 2d 2d 2d 2d 42 45 47  49 4e 20 50 47 50 20 50  |-----BEGIN PGP P|
00000010  55 42 4c 49 43 20 4b 45  59 20 42 4c 4f 43 4b 2d  |UBLIC KEY BLOCK-|
00000020  2d 2d 2d 2d 0a 56 65 72  73 69 6f 6e 3a 20 47 6e  |----.Version: Gn|
00000030  75 50 47 20 76 31 2e 34  2e 31 31 20 28 47 4e 55  |uPG v1.4.11 (GNU|
00000040  2f 4c 69 6e 75 78 29 0a  0a 6d 51 49 4e 42 46 75  |/Linux)..mQINBFu|
00000050  37 67 55 4d 42 45 41 43  6d 50 62 6b 55 6b 4d 4c  |7gUMBEACmPbkUkML|
00000060  4c 38 6b 64 7a 35 53 36  2b 71 33 4e 4e 73 74 78  |L8kdz5S6+q3NNstx|
00000070  67 70 62 39 52 6d 30 6c  4a 34 37 62 69 6e 6f 7a  |gpb9Rm0lJ47binoz|
00000080  4b 5a 68 57 54 74 56 65  70 0a 6d 4f 43 6d 6e 50  |KZhWTtVep.mOCmnP|
00000090  77 74 6a 4c 54 66 69 56  53 38 78 61 56 38 78 79  |wtjLTfiVS8xaV8xy|
000000a0  44 33 4d 48 75 51 4c 77  52 6d 4b 39 50 68 62 68  |D3MHuQLwRmK9Phbh|
000000b0  48 54 79 52 35 74 6c 71  6f 34 46 54 4b 34 30 4b  |HTyR5tlqo4FTK40K|
000000c0  55 59 50 5a 2f 51 51 50  66 44 0a 30 2b 5a 48 6e  |UYPZ/QQPfD.0+ZHn|
000000d0  79 71 68 68 35 53 6b 39  38 50 50 50 48 68 70 4d  |yqhh5Sk98PPPHhpM|
000000e0  47 4c 46 31 62 55 76 59  2f 66 73 34 41 31 4c 35  |GLF1bUvY/fs4A1L5|
000000f0  51 53 52 59 39 41 5a 76  63 67 78 68 74 78 4c 34  |QSRY9AZvcgxhtxL4|
00000100  68 78 45 54 64 4b 2b 75  61 31 4c 0a 76 4f 4b 35  |hxETdK+ua1L.vOK5|
00000110  61 44 69 51 55 79 36 42  47 38 6a 67 42 31 67 33  |aDiQUy6BG8jgB1g3|
00000120  6c 63 67 33 56 6f 77 72  61 45 4b 67 79 69 48 58  |lcg3VowraEKgyiHX|
00000130  46 2f 77 7a 64 78 64 72  43 43 7a 6c 47 53 31 74  |F/wzdxdrCCzlGS1t|
00000140  4e 6e 6c 33 79 70 53 52  55 36 41 63 0a 41 36 71  |Nnl3ypSRU6Ac.A6q|
00000150  64 53 45 6d 46 4a 78 64  5a 52 6c 41 76 51 37 69  |dSEmFJxdZRlAvQ7i|
00000160  69 74 4a 4e 67 4c 44 32  62 43 62 33 4d 4c 6d 51  |itJNgLD2bCb3MLmQ|
00000170  49 67 78 5a 31 45 2b 2b  57 53 64 76 53 30 39 75  |IgxZ1E++WSdvS09u|
00000180  38 4c 52 59 79 53 4e 61  73 58 66 66 70 0a 35 4c  |8LRYySNasXffp.5L|
00000190  2f 62 4c 42 77 31 44 65  2b 2f 32 58 50 6a 30 71  |/bLBw1De+/2XPj0q|
000001a0  2f 45 77 4b 64 4b 75 59  50 71 6c 32 75 79 65 30  |/EwKdKuYPql2uye0|
000001b0  42 34 33 70 4d 68 43 51  2b 41 71 48 78 51 64 44  |B43pMhCQ+AqHxQdD|
000001c0  41 46 77 37 4c 66 36 76  59 6e 35 33 73 73 0a 59  |AFw7Lf6vYn53ss.Y|
000001d0  4f 31 6e 50 36 45 33 4b  43 4f 46 6e 6a 4e 33 78  |O1nP6E3KCOFnjN3x|
000001e0  63 51 57 77 4b 71 2b 55  79 66 55 2f 4a 77 52 42  |cQWwKq+UyfU/JwRB|
000001f0  4b 6e 58 41 64 65 63 6b  70 76 2f 31 55 33 4d 67  |KnXAdeckpv/1U3Mg|
00000200  48 73 4d 49 4d 53 47 4b  59 49 4e 2b 65 4f 42 0a  |HsMIMSGKYIN+eOB.|
00000210  35 50 33 76 38 74 73 42  4d 64 65 4c 2b 38 6f 76  |5P3v8tsBMdeL+8ov|
00000220  6f 55 4e 77 6a 46 4f 31  57 50 65 39 76 67 58 47  |oUNwjFO1WPe9vgXG|
00000230  2f 32 47 32 49 6a 2b 30  68 58 37 6c 55 54 62 2f  |/2G2Ij+0hX7lUTb/|
00000240  33 4d 71 71 67 48 6e 67  52 72 34 43 76 48 58 6f  |3MqqgHngRr4CvHXo|
00000250  0a 43 42 63 68 2f 69 57  4b 51 31 4f 70 6b 6a 52  |.CBch/iWKQ1OpkjR|
00000260  52 6b 71 56 45 4e 64 41  5a 74 48 4d 55 4f 71 4c  |RkqVENdAZtHMUOqL|
00000270  30 69 54 6c 36 76 54 31  56 76 77 4b 75 79 55 79  |0iTl6vT1VvwKuyUy|
00000280  32 4b 41 37 43 39 2b 4a  47 43 6f 64 6c 43 62 50  |2KA7C9+JGCodlCbP|
00000290  4d 0a 6d 43 4e 74 6b 70  69 49 70 5a 68 35 53 63  |M.mCNtkpiIpZh5Sc|
000002a0  46 56 7a 43 31 31 75 4f  62 42 36 77 31 4f 68 36  |FVzC11uObB6w1Oh6|
000002b0  51 4f 61 47 50 61 51 34  32 50 45 63 73 62 32 6f  |QOaGPaQ42PEcsb2o|
000002c0  79 43 42 48 59 31 38 6e  58 6a 45 30 69 66 55 6d  |yCBHY18nXjE0ifUm|
000002d0  66 67 0a 4e 2f 47 36 71  63 48 48 71 58 72 6a 65  |fg.N/G6qcHHqXrje|
000002e0  56 78 62 33 76 46 46 58  50 76 46 41 54 43 68 56  |Vxb3vFFXPvFATChV|
000002f0  51 4a 57 61 46 4c 6d 39  6c 63 6a 4f 6a 6a 45 67  |QJWaFLm9lcjOjjEg|
00000300  7a 46 32 45 73 74 79 6f  69 74 69 58 51 41 52 41  |zF2EstyoitiXQARA|
00000310  51 41 42 0a 74 48 4a 6f  64 48 52 77 63 7a 6f 76  |QAB.tHJodHRwczov|
00000320  4c 33 42 68 59 32 74 68  5a 32 56 6a 62 47 39 31  |L3BhY2thZ2VjbG91|
00000330  5a 43 35 70 62 79 39 7a  5a 57 35 7a 61 57 39 73  |ZC5pby9zZW5zaW9s|
00000340  59 57 4a 7a 4c 33 4e 6c  62 6e 4e 70 62 32 78 68  |YWJzL3NlbnNpb2xh|
00000350  59 6e 4d 67 0a 4b 47 68  30 64 48 42 7a 4f 69 38  |YnMg.KGh0dHBzOi8|
00000360  76 63 47 46 6a 61 32 46  6e 5a 57 4e 73 62 33 56  |vcGFja2FnZWNsb3V|
00000370  6b 4c 6d 6c 76 4c 32 52  76 59 33 4d 6a 5a 33 42  |kLmlvL2RvY3MjZ3B|
00000380  6e 58 33 4e 70 5a 32 35  70 62 6d 63 70 49 44 78  |nX3NpZ25pbmcpIDx|
00000390  7a 64 58 42 77 0a 62 33  4a 30 51 48 42 68 59 32  |zdXBw.b3J0QHBhY2|
000003a0  74 68 5a 32 56 6a 62 47  39 31 5a 43 35 70 62 7a  |thZ2VjbG91ZC5pbz|
000003b0  36 4a 41 6a 67 45 45 77  45 43 41 43 49 46 41 6c  |6JAjgEEwECACIFAl|
000003c0  75 37 67 55 4d 43 47 79  38 47 43 77 6b 49 42 77  |u7gUMCGy8GCwkIBw|
000003d0  4d 43 42 68 55 49 0a 41  67 6b 4b 43 77 51 57 41  |MCBhUI.AgkKCwQWA|
000003e0  67 4d 42 41 68 34 42 41  68 65 41 41 41 6f 4a 45  |gMBAh4BAheAAAoJE|
000003f0  4e 2f 58 53 41 64 48 4d  53 4d 70 68 41 41 50 2f  |N/XSAdHMSMphAAP/|
00000400  30 77 41 56 74 59 2b 39  39 65 70 35 79 4e 68 47  |0wAVtY+99ep5yNhG|
00000410  65 64 52 70 42 33 2f 0a  4f 4e 62 2b 73 77 2f 48  |edRpB3/.ONb+sw/H|
00000420  75 33 49 2b 6a 49 71 4f  76 75 72 68 6a 44 56 6b  |u3I+jIqOvurhjDVk|
00000430  62 68 32 54 57 6f 33 70  52 52 58 2f 46 69 59 6b  |bh2TWo3pRRX/FiYk|
00000440  4c 76 6e 4d 2f 4c 74 6f  35 4e 35 68 63 56 37 79  |LvnM/Lto5N5hcV7y|
00000450  46 48 48 4a 56 61 4a 66  0a 77 66 30 45 4f 63 31  |FHHJVaJf.wf0EOc1|
00000460  4c 4d 5a 75 52 68 52 4f  77 38 69 34 46 66 6d 35  |LMZuRhROw8i4Ffm5|
00000470  2f 51 36 31 38 58 6f 6d  74 43 2b 32 48 4c 6c 6a  |/Q618XomtC+2HLlj|
00000480  50 4d 45 33 38 54 33 68  75 77 63 63 5a 48 6b 65  |PME38T3huwccZHke|
00000490  53 35 32 4e 61 46 59 38  44 0a 6a 78 4d 74 6b 78  |S52NaFY8D.jxMtkx|
000004a0  78 72 64 55 71 39 4e 4a  4b 36 72 66 44 51 35 5a  |xrdUq9NJK6rfDQ5Z|
000004b0  67 38 62 69 73 79 4d 62  44 39 6e 79 57 6b 4e 4e  |g8bisyMbD9nyWkNN|
000004c0  76 36 31 74 6c 37 4c 55  69 4b 48 43 74 4f 63 4b  |v61tl7LUiKHCtOcK|
000004d0  4b 44 31 79 34 70 46 58  42 44 0a 6c 2b 71 2f 38  |KD1y4pFXBD.l+q/8|
000004e0  30 61 63 4b 4f 58 70 42  64 33 38 33 43 73 37 4e  |0acKOXpBd383Cs7N|
000004f0  42 57 6c 4c 6f 6f 6f 54  69 6a 4b 32 52 44 78 6e  |BWlLoooTijK2RDxn|
00000500  49 70 4b 4b 2b 75 73 79  6f 6e 2b 34 4b 47 50 77  |IpKK+usyon+4KGPw|
00000510  63 73 74 58 39 30 76 71  65 71 51 0a 43 76 30 32  |cstX90vqeqQ.Cv02|
00000520  6e 61 64 75 7a 4c 4d 54  78 6c 4d 74 68 6f 32 63  |naduzLMTxlMtho2c|
00000530  73 39 76 78 36 69 77 37  76 65 59 6b 53 65 64 55  |s9vx6iw7veYkSedU|
00000540  69 71 70 69 6b 78 33 7a  37 54 71 76 34 6a 31 36  |iqpikx3z7Tqv4j16|
00000550  77 73 5a 74 77 6f 66 4c  36 30 32 6f 0a 4e 30 36  |wsZtwofL602o.N06|
00000560  6e 7a 75 66 45 73 49 70  58 6a 59 6d 76 4d 55 64  |nzufEsIpXjYmvMUd|
00000570  53 50 6a 63 4a 6a 47 55  78 35 2b 64 51 67 76 58  |SPjcJjGUx5+dQgvX|
00000580  38 54 4d 69 57 4a 54 2b  30 35 42 61 58 34 7a 42  |8TMiWJT+05BaX4zB|
00000590  37 44 61 32 52 50 73 4a  71 56 4e 71 67 0a 4c 4f  |7Da2RPsJqVNqg.LO|
000005a0  6d 7a 2f 51 30 71 67 52  46 74 68 53 41 71 63 4d  |mz/Q0qgRFthSAqcM|
000005b0  64 4c 46 6c 58 58 79 41  73 63 50 48 63 30 45 39  |dLFlXXyAscPHc0E9|
000005c0  50 75 4c 50 78 72 6a 65  57 45 2b 57 57 53 50 73  |PuLPxrjeWE+WWSPs|
000005d0  33 33 63 47 38 79 78 39  39 2f 55 42 71 51 0a 54  |33cG8yx99/UBqQ.T|
000005e0  6a 58 76 78 79 45 69 4e  38 5a 70 77 41 58 50 78  |jXvxyEiN8ZpwAXPx|
000005f0  59 6c 6c 78 79 50 54 31  78 51 68 70 59 6c 4f 43  |YllxyPT1xQhpYlOC|
00000600  46 6e 62 41 73 2f 31 75  2b 31 42 55 67 52 36 74  |FnbAs/1u+1BUgR6t|
00000610  6e 50 50 66 39 4d 66 69  46 69 37 2b 51 76 36 0a  |nPPf9MfiFi7+Qv6.|
00000620  6a 2f 74 6e 58 6f 6c 37  53 43 57 41 52 41 62 61  |j/tnXol7SCWARAba|
00000630  75 32 30 33 6c 71 67 69  79 48 73 42 36 4e 53 2f  |u203lqgiyHsB6NS/|
00000640  31 6f 50 58 38 6e 54 64  70 6a 62 58 41 71 48 38  |1oPX8nTdpjbXAqH8|
00000650  47 55 78 75 54 34 65 42  6d 4d 79 32 78 4c 7a 2b  |GUxuT4eBmMy2xLz+|
00000660  0a 77 67 33 52 47 50 4d  6e 73 41 54 33 44 52 45  |.wg3RGPMnsAT3DRE|
00000670  30 6d 4e 72 32 47 79 6a  38 6d 4c 5a 6b 35 37 6e  |0mNr2Gyj8mLZk57n|
00000680  71 38 63 6c 45 4e 4f 75  38 58 49 6d 6d 4c 4e 39  |q8clENOu8XImmLN9|
00000690  46 5a 4c 59 70 6d 6a 50  31 4e 31 52 64 73 74 75  |FZLYpmjP1N1Rdstu|
000006a0  4b 0a 67 6d 38 55 2b 50  7a 6e 77 55 6e 6f 74 36  |K.gm8U+PznwUnot6|
000006b0  49 79 48 37 76 46 75 51  49 4e 42 46 75 37 67 55  |IyH7vFuQINBFu7gU|
000006c0  4d 42 45 41 44 41 51 6e  39 42 58 59 70 47 6c 73  |MBEADAQn9BXYpGls|
000006d0  4d 2b 34 47 34 56 71 57  56 55 78 48 51 6f 57 43  |M+4G4VqWVUxHQoWC|
000006e0  47 63 0a 57 68 51 35 31  79 74 56 39 5a 79 69 4a  |Gc.WhQ51ytV9ZyiJ|
000006f0  77 70 75 59 4d 76 34 52  39 34 58 4e 37 77 73 37  |wpuYMv4R94XN7ws7|
00000700  48 42 58 78 41 2f 39 6a  66 36 73 70 36 50 39 30  |HBXxA/9jf6sp6P90|
00000710  75 6c 35 70 4b 74 55 33  31 44 56 66 6b 39 43 65  |ul5pKtU31DVfk9Ce|
00000720  6e 30 67 0a 49 4f 34 78  44 35 62 4e 65 44 63 77  |n0g.IO4xD5bNeDcw|
00000730  37 42 45 71 32 4a 75 4c  57 32 6c 52 42 78 54 4d  |7BEq2JuLW2lRBxTM|
00000740  44 50 34 78 51 4e 51 4b  76 4a 77 2b 62 65 43 54  |DP4xQNQKvJw+beCT|
00000750  48 39 36 72 36 65 64 77  59 67 55 66 42 6c 78 6c  |H96r6edwYgUfBlxl|
00000760  6c 2f 42 2b 0a 43 51 4a  61 56 47 5a 4f 6c 4e 42  |l/B+.CQJaVGZOlNB|
00000770  6b 44 68 65 30 31 65 73  30 76 37 61 67 30 56 52  |kDhe01es0v7ag0VR|
00000780  31 65 4b 38 5a 36 6a 30  76 45 66 63 63 34 32 52  |1eK8Z6j0vEfcc42R|
00000790  77 72 78 48 56 4d 52 75  79 61 64 51 6c 61 43 6a  |wrxHVMRuyadQlaCj|
000007a0  41 34 74 57 75 0a 73 42  35 36 51 41 6b 62 79 66  |A4tWu.sB56QAkbyf|
000007b0  43 53 73 32 79 51 62 63  49 66 76 2b 7a 31 52 41  |CSs2yQbcIfv+z1RA|
000007c0  62 69 7a 5a 33 57 77 32  35 4c 47 6e 62 6a 4f 4b  |bizZ3Ww25LGnbjOK|
000007d0  34 48 2f 51 48 65 46 39  31 6d 65 50 6f 34 6c 30  |4H/QHeF91mePo4l0|
000007e0  44 42 4a 33 4b 58 0a 72  36 38 6a 67 54 56 32 66  |DBJ3KX.r68jgTV2f|
000007f0  56 30 50 78 57 61 37 43  75 71 6e 74 44 4c 57 30  |V0PxWa7CuqntDLW0|
00000800  44 59 61 4b 2f 6f 6e 48  50 35 4c 75 7a 41 6d 66  |DYaK/onHP5LuzAmf|
00000810  65 38 6e 2b 4a 62 39 70  74 4b 4b 54 72 31 6a 73  |e8n+Jb9ptKKTr1js|
00000820  74 4d 7a 37 66 73 43 0a  78 52 67 39 73 4a 74 31  |tMz7fsC.xRg9sJt1|
00000830  4a 70 39 45 77 41 64 56  73 6c 49 36 53 4c 66 73  |Jp9EwAdVslI6SLfs|
00000840  41 36 70 75 74 51 72 4e  49 72 79 45 64 6d 67 64  |A6putQrNIryEdmgd|
00000850  4e 4c 4c 51 42 41 50 6e  65 76 34 56 6b 35 48 64  |NLLQBAPnev4Vk5Hd|
00000860  5a 71 4f 4d 52 4b 53 76  0a 4a 59 31 68 67 53 34  |ZqOMRKSv.JY1hgS4|
00000870  68 32 31 30 36 45 53 30  71 79 48 2b 64 6f 58 67  |h2106ES0qyH+doXg|
00000880  4e 46 47 71 6b 63 43 65  69 58 70 66 41 31 49 62  |NFGqkcCeiXpfA1Ib|
00000890  48 74 53 6b 4a 38 78 5a  42 44 64 73 34 63 58 68  |HtSkJ8xZBDds4cXh|
000008a0  2f 74 73 7a 56 58 6d 72  2f 0a 72 74 4e 46 4a 6f  |/tszVXmr/.rtNFJo|
000008b0  4d 6a 4b 45 72 44 70 2b  6d 5a 74 61 76 45 47 4c  |MjKErDp+mZtavEGL|
000008c0  51 39 51 35 63 72 30 63  47 36 73 38 63 2f 4c 6b  |Q9Q5cr0cG6s8c/Lk|
000008d0  4b 6d 48 4b 54 35 68 62  41 6c 64 52 39 59 30 36  |KmHKT5hbAldR9Y06|
000008e0  2f 2f 35 49 30 47 65 77  66 4a 0a 31 4b 5a 55 42  |//5I0GewfJ.1KZUB|
000008f0  6b 57 55 69 66 67 77 4e  72 66 69 53 32 31 44 72  |kWUifgwNrfiS21Dr|
00000900  77 75 50 61 69 51 52 36  52 43 74 37 7a 4f 67 51  |wuPaiQR6RCt7zOgQ|
00000910  71 75 63 6a 64 7a 67 39  37 57 47 57 4d 51 71 42  |qucjdzg97WGWMQqB|
00000920  67 5a 2b 34 37 56 4a 4a  49 4d 42 0a 73 4d 6e 6b  |gZ+47VJJIMB.sMnk|
00000930  49 67 62 36 51 35 63 33  35 2f 73 2f 76 56 33 4a  |Igb6Q5c35/s/vV3J|
00000940  59 34 2f 4a 6f 59 39 6b  61 6e 61 57 32 6e 2f 4b  |Y4/JoY9kanaW2n/K|
00000950  65 34 4b 63 66 51 58 7a  7a 5a 4b 6e 4e 6d 6e 77  |e4KcfQXzzZKnNmnw|
00000960  50 6a 71 62 4a 6a 70 66  5a 6a 75 34 0a 50 54 30  |PjqbJjpfZju4.PT0|
00000970  57 6e 70 50 48 48 4b 69  58 2f 77 41 52 41 51 41  |WnpPHHKiX/wARAQA|
00000980  42 69 51 51 2b 42 42 67  42 41 67 41 4a 42 51 4a  |BiQQ+BBgBAgAJBQJ|
00000990  62 75 34 46 44 41 68 73  75 41 69 6b 4a 45 4e 2f  |bu4FDAhsuAikJEN/|
000009a0  58 53 41 64 48 4d 53 4d  70 77 56 30 67 0a 42 42  |XSAdHMSMpwV0g.BB|
000009b0  6b 42 41 67 41 47 42 51  4a 62 75 34 46 44 41 41  |kBAgAGBQJbu4FDAA|
000009c0  6f 4a 45 47 6c 74 76 6d  61 6e 4c 58 62 61 74 39  |oJEGltvmanLXbat9|
000009d0  55 50 2f 31 63 5a 6c 55  73 75 4b 34 64 33 31 75  |UP/1cZlUsuK4d31u|
000009e0  39 37 74 50 36 41 57 4e  4d 68 32 43 7a 2f 0a 76  |97tP6AWNMh2Cz/.v|
000009f0  6e 55 62 63 61 55 54 78  61 6c 65 42 42 66 54 50  |nUbcaUTxaleBBfTP|
00000a00  79 36 68 2f 64 6a 78 35  59 64 77 44 31 64 65 4a  |y6h/djx5YdwD1deJ|
00000a10  38 70 69 61 35 49 57 58  70 43 67 34 43 55 37 6d  |8pia5IWXpCg4CU7m|
00000a20  71 44 56 61 58 33 4a 6d  38 35 66 39 36 49 6a 0a  |qDVaX3Jm85f96Ij.|
00000a30  76 62 31 79 62 76 39 61  38 4a 61 33 6e 6d 6c 43  |vb1ybv9a8Ja3nmlC|
00000a40  2f 75 34 5a 32 63 49 75  71 4e 33 59 6a 68 32 51  |/u4Z2cIuqN3Yjh2Q|
00000a50  75 55 34 61 48 75 45 46  6f 73 61 4a 6f 77 46 64  |uU4aHuEFosaJowFd|
00000a60  67 34 70 32 48 4e 48 4f  34 37 54 2b 4a 55 56 4e  |g4p2HNHO47T+JUVN|
00000a70  0a 4b 4f 6a 68 4d 52 65  47 46 59 54 73 68 74 73  |.KOjhMReGFYTshts|
00000a80  7a 59 65 39 57 33 4d 51  74 30 35 6f 4f 50 41 66  |zYe9W3MQt05oOPAf|
00000a90  44 55 38 33 5a 4e 67 75  5a 50 49 42 2f 39 6a 6f  |DU83ZNguZPIB/9jo|
00000aa0  50 56 38 39 66 52 2f 71  57 75 36 5a 64 55 78 51  |PV89fR/qWu6ZdUxQ|
00000ab0  47 0a 6a 65 70 69 41 34  48 32 59 4d 61 39 2f 6f  |G.jepiA4H2YMa9/o|
00000ac0  54 56 6b 43 39 74 65 36  6f 36 73 42 75 45 55 65  |TVkC9te6o6sBuEUe|
00000ad0  4b 38 2f 4a 78 5a 4d 6a  4c 4b 46 6e 4a 55 39 56  |K8/JxZMjLKFnJU9V|
00000ae0  2f 68 47 35 6a 6e 52 48  56 6d 31 62 43 78 4c 48  |/hG5jnRHVm1bCxLH|
00000af0  32 6f 0a 73 64 4a 73 61  43 39 47 46 4d 46 7a 56  |2o.sdJsaC9GFMFzV|
00000b00  37 59 6d 50 57 67 6c 62  36 57 79 58 62 6e 70 41  |7YmPWglb6WyXbnpA|
00000b10  69 37 46 2b 57 76 52 52  6b 6c 70 67 53 6a 49 57  |i7F+WvRRklpgSjIW|
00000b20  52 36 77 38 31 50 54 6f  41 55 33 7a 48 6a 7a 77  |R6w81PToAU3zHjzw|
00000b30  4a 33 6f 0a 43 49 4d 73  34 59 4f 44 77 4b 62 71  |J3o.CIMs4YODwKbq|
00000b40  43 43 4b 58 53 42 67 7a  7a 48 46 5a 57 66 4d 37  |CCKXSBgzzHFZWfM7|
00000b50  76 61 58 6e 45 45 58 73  4a 76 42 79 77 4a 47 55  |vaXnEEXsJvBywJGU|
00000b60  56 63 69 4c 73 5a 32 45  56 79 52 74 47 6d 6e 2f  |VciLsZ2EVyRtGmn/|
00000b70  6c 4d 63 76 0a 41 49 64  70 68 57 78 57 2f 4f 4a  |lMcv.AIdphWxW/OJ|
00000b80  6d 6c 35 48 54 41 6c 53  35 57 48 6b 63 67 71 70  |ml5HTAlS5WHkcgqp|
00000b90  67 35 53 33 48 43 59 6f  30 4f 34 69 47 49 76 6f  |g5S3HCYo0O4iGIvo|
00000ba0  72 2b 50 6f 52 5a 50 45  76 75 52 4a 58 6b 33 2f  |r+PoRZPEvuRJXk3/|
00000bb0  4c 49 46 66 32 0a 52 4c  5a 36 36 62 73 57 31 67  |LIFf2.RLZ66bsW1g|
00000bc0  44 5a 49 49 49 4a 43 75  44 73 31 56 6d 35 61 31  |DZIIIJCuDs1Vm5a1|
00000bd0  6d 41 48 47 51 61 58 38  57 30 46 38 43 78 64 4e  |mAHGQaX8W0F8CxdN|
00000be0  73 41 67 39 33 43 79 56  2b 61 46 50 7a 66 53 6f  |sAg93CyV+aFPzfSo|
00000bf0  77 59 38 7a 62 55 0a 61  2f 70 34 66 75 37 2b 70  |wY8zbU.a/p4fu7+p|
00000c00  6c 30 2b 75 2b 65 39 68  36 4d 68 73 4d 70 67 44  |l0+u+e9h6MhsMpgD|
00000c10  4c 76 64 52 47 6f 51 72  57 34 4c 6c 47 73 4f 56  |LvdRGoQrW4LlGsOV|
00000c20  4a 55 75 62 62 76 55 51  50 41 43 67 51 4a 4c 38  |JUubbvUQPACgQJL8|
00000c30  4e 6b 42 64 69 43 43 0a  48 33 5a 4e 71 67 35 76  |NkBdiCC.H3ZNqg5v|
00000c40  58 39 7a 55 6e 74 2b 6a  34 35 63 75 65 33 73 52  |X9zUnt+j45cue3sR|
00000c50  34 43 57 45 74 43 48 41  77 79 73 75 44 4a 63 76  |4CWEtCHAwysuDJcv|
00000c60  56 49 38 41 66 68 35 77  68 57 53 6c 41 71 4b 5a  |VI8Afh5whWSlAqKZ|
00000c70  74 31 4d 66 76 67 2b 62  0a 71 55 6a 4c 6f 30 30  |t1Mfvg+b.qUjLo00|
00000c80  7a 69 45 37 51 4a 69 46  43 47 76 4d 51 41 49 6f  |ziE7QJiFCGvMQAIo|
00000c90  6b 66 61 50 2f 68 34 6c  75 69 57 4b 35 63 68 6c  |kfaP/h4luiWK5chl|
00000ca0  66 63 48 55 72 65 44 62  56 4c 45 69 39 31 45 6e  |fcHUreDbVLEi91En|
00000cb0  42 6c 2b 2b 51 77 5a 6b  70 0a 4c 44 2b 31 36 55  |Bl++QwZkp.LD+16U|
00000cc0  4a 48 43 37 76 67 46 66  61 30 49 41 44 34 69 4b  |JHC7vgFfa0IAD4iK|
00000cd0  38 2b 4a 49 64 34 41 48  42 4c 47 44 58 78 68 2f  |8+JId4AHBLGDXxh/|
00000ce0  36 63 6f 39 34 46 78 54  56 44 6b 5a 6f 4a 42 79  |6co94FxTVDkZoJBy|
00000cf0  66 6d 39 2f 6c 58 55 35  50 6f 0a 71 61 42 38 50  |fm9/lXU5Po.qaB8P|
00000d00  75 71 6d 73 2b 49 36 74  50 54 51 52 63 4f 4e 66  |uqms+I6tPTQRcONf|
00000d10  79 39 67 33 4e 2b 4c 56  46 4a 53 68 73 39 6a 71  |y9g3N+LVFJShs9jq|
00000d20  4d 79 44 51 6f 4a 61 54  55 36 2f 4d 50 4f 58 33  |MyDQoJaTU6/MPOX3|
00000d30  41 71 31 39 6a 77 42 42  74 58 2f 0a 76 56 6e 45  |Aq19jwBBtX/.vVnE|
00000d40  41 33 36 38 41 49 67 4f  2f 54 30 6f 77 73 59 2f  |A368AIgO/T0owsY/|
00000d50  5a 58 61 43 37 79 30 38  62 62 64 6b 69 48 31 6e  |ZXaC7y08bbdkiH1n|
00000d60  62 46 73 50 49 44 4e 32  6f 63 53 54 75 4b 4d 4a  |bFsPIDN2ocSTuKMJ|
00000d70  51 75 68 6f 37 4a 71 58  39 38 33 72 0a 4e 43 73  |Quho7JqX983r.NCs|
00000d80  4e 4a 58 77 46 52 69 62  68 43 45 57 5a 67 39 33  |NJXwFRibhCEWZg93|
00000d90  35 41 59 54 49 62 35 79  62 68 49 6e 50 33 7a 76  |5AYTIb5ybhInP3zv|
00000da0  6e 78 79 72 32 65 46 57  53 65 50 70 6f 39 4a 49  |nxyr2eFWSePpo9JI|
00000db0  56 2b 42 70 61 6f 55 4d  54 78 6d 73 32 0a 6d 67  |V+BpaoUMTxms2.mg|
00000dc0  44 45 43 30 76 59 6f 7a  7a 4e 48 39 5a 78 59 4f  |DEC0vYozzNH9ZxYO|
00000dd0  4b 34 39 43 32 64 38 31  42 7a 6e 46 36 63 46 72  |K49C2d81BznF6cFr|
00000de0  65 41 35 6b 65 33 68 67  34 33 53 45 79 4d 7a 73  |eA5ke3hg43SEyMzs|
00000df0  33 6d 2f 7a 32 68 67 35  53 54 69 36 49 77 0a 64  |3m/z2hg5STi6Iw.d|
00000e00  44 6c 30 4b 4d 53 75 77  37 67 36 69 51 6d 6f 39  |Dl0KMSuw7g6iQmo9|
00000e10  37 74 6e 61 57 48 37 4c  37 36 4e 67 5a 71 57 76  |7tnaWH7L76NgZqWv|
00000e20  68 4a 2f 63 62 58 74 48  4c 51 4d 46 66 4e 4c 34  |hJ/cbXtHLQMFfNL4|
00000e30  51 64 61 31 51 54 41 77  50 52 42 73 42 65 64 0a  |Qda1QTAwPRBsBed.|
00000e40  4c 6a 76 53 62 4f 64 51  51 49 56 50 4e 52 65 55  |LjvSbOdQQIVPNReU|
00000e50  4e 64 7a 75 42 69 6d 66  35 2b 6d 56 45 72 59 69  |NdzuBimf5+mVErYi|
00000e60  32 4b 6c 6a 4b 36 39 73  48 4e 4a 76 2b 63 64 71  |2KljK69sHNJv+cdq|
00000e70  72 6b 75 4d 4f 63 49 62  31 43 4e 4a 4c 76 41 70  |rkuMOcIb1CNJLvAp|
00000e80  0a 62 33 39 71 37 67 65  46 42 59 69 37 64 76 58  |.b39q7geFBYi7dvX|
00000e90  79 68 53 49 62 4f 66 45  59 66 73 6f 57 75 69 72  |yhSIbOfEYfsoWuir|
00000ea0  77 47 34 6c 4f 53 68 62  79 52 74 77 4a 31 66 74  |wG4lOShbyRtwJ1ft|
00000eb0  78 52 32 6c 6b 61 67 6b  42 67 6a 65 4e 48 4f 57  |xR2lkagkBgjeNHOW|
00000ec0  72 0a 72 46 31 33 4a 78  49 32 68 6b 71 32 39 49  |r.rF13JxI2hkq29I|
00000ed0  4f 4e 64 4a 76 56 43 70  34 46 31 4e 43 4c 6b 43  |ONdJvVCp4F1NCLkC|
00000ee0  6c 45 52 4f 35 66 71 6d  32 54 45 33 39 55 59 4e  |lERO5fqm2TE39UYN|
00000ef0  51 30 75 57 61 6f 4f 37  58 61 46 61 47 50 77 61  |Q0uWaoO7XaFaGPwa|
00000f00  59 46 0a 4a 35 65 30 42  67 38 7a 6a 35 48 39 58  |YF.J5e0Bg8zj5H9X|
00000f10  61 6f 69 41 77 65 39 74  38 42 46 47 70 4b 78 46  |aoiAwe9t8BFGpKxF|
00000f20  52 57 49 6e 77 58 6c 4c  35 71 57 64 6d 30 71 6a  |RWInwXlL5qWdm0qj|
00000f30  54 63 4d 4a 55 38 37 4b  31 70 50 6b 63 35 57 6d  |TcMJU87K1pPkc5Wm|
00000f40  2f 65 6e 0a 3d 52 53 72  63 0a 2d 2d 2d 2d 2d 45  |/en.=RSrc.-----E|
00000f50  4e 44 20 50 47 50 20 50  55 42 4c 49 43 20 4b 45  |ND PGP PUBLIC KE|
00000f60  59 20 42 4c 4f 43 4b 2d  2d 2d 2d 2d              |Y BLOCK-----|
00000f6c

Create fixed version of this public key.

$ (cat gpg.key; echo) > gpg_fixed.key

Contirm that it will contain missing new line character.

$ hexdump -C gpg_fixed.key | tail -2
00000f60  59 20 42 4c 4f 43 4b 2d  2d 2d 2d 2d 0a           |Y BLOCK-----.|
00000f6d

Dry-run import procedure.

$ sudo rpm --test --import gpg_fixed.key

Import public key.

$ sudo rpm --import gpg_fixed.key

List imported keys.

$ rpm --query --all "gpg-pubkey*"
gpg-pubkey-47312329-5bbb8143
gpg-pubkey-8483c65d-5ccc5b19

Display details for these public keys.

$ rpm --query --info gpg-pubkey-8483c65d-5ccc5b19
Name        : gpg-pubkey
Version     : 8483c65d
Release     : 5ccc5b19
Architecture: (none)
Install Date: Tue Dec 17 20:13:30 2019
Group       : Public Keys
Size        : 0
License     : pubkey
Signature   : (none)
Source RPM  : (none)
Build Date  : Fri May  3 15:15:37 2019
Build Host  : localhost
Relocations : (not relocatable)
Packager    : CentOS (CentOS Official Signing Key) <[email protected]>
Summary     : gpg(CentOS (CentOS Official Signing Key) <[email protected]>)
Description :
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: rpm-4.14.2 (NSS-3)

mQINBFzMWxkBEADHrskpBgN9OphmhRkc7P/YrsAGSvvl7kfu+e9KAaU6f5MeAVyn
rIoM43syyGkgFyWgjZM8/rur7EMPY2y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TbNQDCdaxSgwbF2T+gw
byaDvkS4xtR6Soj7BKjKAmcnf5fn4C5Or0KLUqMzBtDMbfQQihn62iZJN6ZZ/4dg
q4HTqyVpyuzMXsFpJ9L/FqH2DJ4exGGpBv00ba/Zauy7GsqOc5PnNBsYaHCply0X
407DRx51t9YwYI/ttValuehq9+gRJpOTTKp6AjZn/a5Yt3h6jDgpNfM/EyLFIY9z
V6CXqQQ/8JRvaik/JsGCf+eeLZOw4koIjZGEAg04iuyNTjhx0e/QHEVcYAqNLhXG
rCTTbCn3NSUO9qxEXC+K/1m1kaXoCGA0UWlVGZ1JSifbbMx0yxq/brpEZPUYm+32
o8XfbocBWljFUJ+6aljTvZ3LQLKTSPW7TFO+GXycAOmCGhlXh2tlc6iTc41PACqy
yy+mHmSv
=kkH7
-----END PGP PUBLIC KEY BLOCK-----

$ rpm --query --info gpg-pubkey-47312329-5bbb8143
Name        : gpg-pubkey
Version     : 47312329
Release     : 5bbb8143
Architecture: (none)
Install Date: Tue Dec 17 18:31:30 2019
Group       : Public Keys
Size        : 0
License     : pubkey
Signature   : (none)
Source RPM  : (none)
Build Date  : Mon Oct  8 16:09:39 2018
Build Host  : localhost
Relocations : (not relocatable)
Packager    : https://packagecloud.io/sensiolabs/sensiolabs (https://packagecloud.io/docs#gpg_signing) <[email protected]>
Summary     : gpg(https://packagecloud.io/sensiolabs/sensiolabs (https://packagecloud.io/docs#gpg_signing) <[email protected]>)
Description :
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: rpm-4.14.2 (NSS-3)

mQINBFu7gUMBEACmPbkUkMLL8kdz5S6+q3NNstxgpb9Rm0lJ47binozKZhWTtVep
mOCmnPwtjLTfiVS8xaV8xyD3MHuQLwRmK9PhbhHTyR5tlqo4FTK40KUYPZ/QQPfD
0+ZHnyqhh5Sk98PPPHhpMGLF1bUvY/fs4A1L5QSRY9AZvcgxhtxL4hxETdK+ua1L
vOK5aDiQUy6BG8jgB1g3lcg3VowraEKgyiHXF/wzdxdrCCz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d81BznF6cFreA5ke3hg43SEyMzs3m/z2hg5STi6Iw
dDl0KMSuw7g6iQmo97tnaWH7L76NgZqWvhJ/cbXtHLQMFfNL4Qda1QTAwPRBsBed
LjvSbOdQQIVPNReUNdzuBimf5+mVErYi2KljK69sHNJv+cdqrkuMOcIb1CNJLvAp
b39q7geFBYi7dvXyhSIbOfEYfsoWuirwG4lOShbyRtwJ1ftxR2lkagkBgjeNHOWr
rF13JxI2hkq29IONdJvVCp4F1NCLkClERO5fqm2TE39UYNQ0uWaoO7XaFaGPwaYF
J5e0Bg8zj5H9XaoiAwe9t8BFGpKxFRWInwXlL5qWdm0qjTcMJU87K1pPkc5Wm/en
=RSrc
-----END PGP PUBLIC KEY BLOCK-----

Use GnuPG to display key details.

$ rpm --query gpg-pubkey-47312329-5bbb8143 --queryformat "%{DESCRIPTION}\n" | gpg --dry-run --import-options import-show --import
pub   rsa4096 2018-10-08 [SCEA]
      9B64BFB189197267DD269B29DFD7480747312329
uid                      https://packagecloud.io/sensiolabs/sensiolabs (https://packagecloud.io/docs#gpg_signing) <[email protected]>
sub   rsa4096 2018-10-08 [SEA]

gpg: Total number processed: 1

Pretty print list of imported public keys.

$ rpm --query gpg-pubkey --queryformat "%{NAME}-%{VERSION}-%{RELEASE}\n\tSUMMARY: %{SUMMARY}\n\tPACKAGER: %{PACKAGER}\n\tINSTALL TIME: %{INSTALLTIME:date}\n"
gpg-pubkey-47312329-5bbb8143
        SUMMARY: gpg(https://packagecloud.io/sensiolabs/sensiolabs (https://packagecloud.io/docs#gpg_signing) <[email protected]>)
        PACKAGER: https://packagecloud.io/sensiolabs/sensiolabs (https://packagecloud.io/docs#gpg_signing) <[email protected]>
        INSTALL TIME: Tue Dec 17 18:31:30 2019
gpg-pubkey-8483c65d-5ccc5b19
        SUMMARY: gpg(CentOS (CentOS Official Signing Key) <[email protected]>)
        PACKAGER: CentOS (CentOS Official Signing Key) <[email protected]>
        INSTALL TIME: Tue Dec 17 20:13:30 2019

Dry-run erase procedure.

$ sudo rpm --test --erase gpg-pubkey-47312329-5bbb8143

You will see an error if there is a problem.

$ sudo rpm --test --erase gpg-pubkey-47312329-5bbb8144
error: package gpg-pubkey-47312329-5bbb8144 is not installed

Remove public key from RPM database.

$ sudo rpm --erase gpg-pubkey-47312329-5bbb8143

Verify that it was removed.

$ rpm --query --all "gpg-pubkey*"
gpg-pubkey-8483c65d-5ccc5b19