Hello,
this came up as part of ostree's testsuite. Minimal testcase:
#!/bin/sh MYGPGHOME=`mktemp -d` cp -a /tmp/ostree-2024.8/tests/gpghome/* ${MYGPGHOME}/ gpg --homedir=${MYGPGHOME} --version # The GPG private keyring in gpghome is in the older secring.gpg # format, but we're likely using a newer gpg. Normally it's # implicitly migrated to the newer format, but this test hasn't # signed anything, so the private keys haven't been loaded. Force # the migration by listing the private keys. gpg --homedir=${MYGPGHOME} -K > /dev/null gpg --verbose --homedir=${MYGPGHOME} \ --quick-set-expire 5E65DE75AB1C501862D476347FCA23D8472CDAFA seconds=1 echo DEBUG quick-expire exit status $? sleep 2 gpg --verbose --homedir=${MYGPGHOME} --import \ /tmp/ostree-2024.8/tests/gpghome/revocations/key1.rev echo DEBUG import rev exit status $? rm -rf ${MYGPGHOME}
The import of the revocation cert exits with error code 2 for 2.2.45 but exited with success for 2.2.44 and also exits with success for 2.4.5.
Just grab the ostree tarball from here to get the examle certs: http://deb.debian.org/debian/pool/main/o/ostree/ostree_2024.8.orig.tar.xz
cu Andreas