list_primary_fingerprints() {
local fake=$(msmktempdir)
trap "rm -rf $fake" EXIT
- GNUPGHOME="$fake" gpg --no-tty --quiet --import
+ GNUPGHOME="$fake" gpg --no-tty --quiet --import --ignore-time-conflict
GNUPGHOME="$fake" gpg --with-colons --fingerprint --list-keys | \
awk -F: '/^fpr:/{ print $10 }'
trap - EXIT
get_cert_info() {
local fake=$(msmktempdir)
trap "rm -rf $fake" EXIT
- GNUPGHOME="$fake" gpg --no-tty --quiet --import
- GNUPGHOME="$fake" gpg --with-colons --fingerprint --list-keys "$1"
+ GNUPGHOME="$fake" gpg --no-tty --quiet --import --ignore-time-conflict
+ GNUPGHOME="$fake" gpg --with-colons --fingerprint --fixed-list-mode --list-keys "$1"
trap - EXIT
rm -rf "$fake"
}