script to import keys

Jay Daniels drs at pointyhats.com
Tue Apr 20 12:42:09 UTC 2004


A simple script to import keys.

$ cat import-keys.sh
#!/bin/sh
 
if [ $UID != 0 ]; then
 echo Error: become root before starting $0 >&2
 exit 100
fi

rpm --import http://fedora.redhat.com/about/security/30C9ECF8.txt
rpm --import http://www.fedora.us/FEDORA-GPG-KEY
rpm --import http://freshrpms.net/packages/RPM-GPG-KEY.txt
rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
rpm --import http://atrpms.physik.fu-berlin.de/RPM-GPG-KEY.atrpms
rpm --import http://newrpms.sunsite.dk/gpg-pubkey-newrpms.txt
rpm --import http://www.jpackage.org/jpackage.asc
 
exit 0
#EOF

Are there any more major repositories that could be added?

Is there any way to use rpm to check if the key is already imported?
Perhaps an IF statement by checking the key id with gpg, 0x1CDDBCA9 or
some way to validate the key matches the certain key id's.

Importing from a keyserver may be more secure than importing from
a URL?

Since the file checksum is checked anyway, is gpg even neccessary?


jay





More information about the fedora-list mailing list