I work on a CentOS 5.4 host with rpm version 4.4.2.3-18.el5 and gpg version 1.4-2 I signed rpm with the command
> rpm --define '_signature gpg' --define '_gpg_path /path/to/keys' --define '_gpg_name mygpgname' -K myrpm.rpm
The command succeeds and repeating the command gives a warning that rpm has already been signed using the key.
However, when I try to verify the signature with rpm -K, it returns the result NOT OK (MISSING_KEYS).
> rpm -K myrpm.rpm > GNUPGHOME=/path/to/keys rpm --define '_signature gpg' --define '_gnupghome /path/to/keys' --define '_gpg_name mygpgname' -K myrpm.rpm myrpm.rpm: (SHA1) DSA sha1 md5 (GPG) NOT OK (MISSING KEYS: GPG
I am assuming that somehow I am setting the path to the keys. I also tried setting GPGPATH = / path / to / keys with no luck.
Does anyone have any suggestions on how I can get rpm -K to find the missing keys?
source share