condorcore-keyring/update-keys
Pierre Schmitz 35a8c70457 Add keyid lists and update script
* The keyid lists are retreived from archweb
* The update script can be run to refresh all keys
2012-02-12 17:04:59 +01:00

21 lines
458 B
Bash
Executable File

#!/bin/bash
TMPDIR=$(mktemp -d)
trap "rm -rf '${TMPDIR}'" EXIT
KEYSERVER='pgp.mit.edu'
GPG="gpg -q --keyserver "${KEYSERVER}" --homedir ${TMPDIR}"
pushd "$(dirname "$0")" >/dev/null
for list in master packager; do
rm -rf $list
mkdir $list
while read -ra data; do
keyid="${data[0]}"
username="${data[@]:1}"
${GPG} --recv-keys ${keyid}
${GPG} --armor --output ${list}/${username}.asc --export ${keyid}
done < ${list}-keyids
done
popd >/dev/null