blob: 7ac6eb8c0356d01de679e7f4dd09e9b9fa3a67dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
# Looks for expired keys in our active keyrings
set -e
find_expired () {
k=$1
gpg --no-options --no-auto-check-trustdb --no-default-keyring \
--keyring "./output/keyrings/$k" --list-keys --with-colons \
| grep -a '^pub' \
| awk -F: -v keyring=$1 \
'$2 == "e" {print keyring ":\t0x" $5 " expired on " strftime("%F %T", $7) " (" $10 ")"}'
}
fail=0
for keyring in debian-keyring.gpg debian-maintainers.gpg \
debian-nonupload.gpg; do
find_expired $keyring
done
exit $fail
|