[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PGP and GPG keys...



Re: Adeodato Simó in <[🔎] 20051112184514.GA17141@chistera.yi.org>
>   Perhaps if you post your keyid somebody can take a look and tell you
>   whether it's fine or not?

The "official" test is:

GPGOPTS=" -q --no-options --no-default-keyring --no-auto-check-trustdb --keyring $DESTDIR/nm.gpg --trust-model always"

echo "Let's test if its a version 4 or greater key"
VERSION=$(gpg ${GPGOPTS} --with-colons --with-fingerprint --list-keys 0x$KEYID | awk -F : '$1 == "fpr" {print length($10)}')

if [ $VERSION -eq 32 ]; then
        echo "Warning: It looks like this key is an Version 3 GPG key. This is bad."
        echo "This is not accepted for the NM ID Step. Please doublecheck and then"
        echo "get your applicant to send you a correct key if this is script isnt wrong."
else
        echo "Key is ok"
fi

Christoph
-- 
cb@df7cb.de | http://www.df7cb.de/

Attachment: signature.asc
Description: Digital signature


Reply to: