export-filter question or bug
Erich Eckner
gnupg at eckner.net
Fri Feb 12 11:44:33 CET 2021
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi,
I'm using the following command to export keys for wkd:
$GPG --export --export-filter keep-uid="mbox = $mbox" $fpr
However, this creates funny results for the key for
buildmaster at archlinux32.org which is downloadable here:
https://archlinux32.org/keys.php?k=2E29129B8C684FE7A959C422714A1770ECE2DF62
Is my filtering wrong or is this some bug in gpg?
To reproduce the issue, run:
tmp_dir=$(mktemp -d)
GPG='gpg --homedir '"$tmp_dir"
curl 'https://archlinux32.org/keys.php?k=2E29129B8C684FE7A959C422714A1770ECE2DF62' | $GPG --import
$GPG --export --export-filter keep-uid="mbox = buildmaster at archlinux32.org" 2E29129B8C684FE7A959C422714A1770ECE2DF62 | gpg
this gives:
pub rsa4096 2017-06-23 [SC] [expired: 2019-06-23]
2E29129B8C684FE7A959C422714A1770ECE2DF62
uid buildmaster <buildmaster at archlinux32.org>
sub rsa4096 2017-06-23 [S] [expired: 2021-12-31]
(note the expired pub, thus the whole key is considered expired)
However, skipping the --export-filter:
$GPG --export 2E29129B8C684FE7A959C422714A1770ECE2DF62 | gpg
gives the correct expiration:
pub rsa4096 2017-06-23 [SC] [expires: 2021-12-31]
2E29129B8C684FE7A959C422714A1770ECE2DF62
uid buildmaster <buildmaster at archlinux32.org>
uid archlinux32 repository signing key <repositories at archlinux32.org>
sub rsa4096 2017-06-23 [S] [expires: 2021-12-31]
This is not usable for wkd for me, because it contains all uids (of
course).
Thanks in advance,
Erich
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEE3p92iMrPBP64GmxZCu7JB1Xae1oFAmAmXBMACgkQCu7JB1Xa
e1rL3Q/8Doo2VqaXgZgJAPw3xK0CvF8VQc8GLW4krEDTQH6Wu70e7nYGxFeJyLgt
pqmloRZHDbGBfAh35qIfO1eQZgoe9eyVQyriJcqG/BrW5H9Qk20KGUHhHD1yjupZ
+8WAQXzbmapiZz5COBkp1AQlOXgjKWMMTWMPt1DyaOaUKvw6LfpU78nML7wY6rF5
r7VX5jwrEDQmdyuPrumCotuZZpNOPgdAtURO9YHGh9sbOSsuIh4jvxWPyLOiFLRO
M9wmyVhDt7sDQzoyzKew5LJGqsXaJ+SaAbQszNnS5NYMWeoeZk9nJGKgUosWFhwi
RWe9ADVo9JTJcivGT/u/DGIlUtYhIdCO3z87sNvON6o4Uh9twAJk+okR/X7EYcRu
ZcVWp/HFqwqBGDKtnxw8TCvLFEHPmnnklaXBwZW0k1TQw1HbmdQoe5vHsJJoIx0s
CGMD2/5NxDWZtRPs/hJMnERgX7n15VJgMVDPSMSeGGQUIibrmEO3Pggyy2xNmVeo
x0Bhobi+zsUKluC78Jv/GHkSc1jJa0ioXQIU2Kf2/zfm9148NFtE3bWOiz/sqC19
n+SItHRN/qs4J8obNNX2T9pXbnOXQ9wAmA5rYxG/3lKyq0rCKfXAXlOFSXksabDG
PI10H2boPeMLu+HlnRtuAOq5an70flwuvXlDWg3Ux8NY3vJ4eu0=
=dzM2
-----END PGP SIGNATURE-----
More information about the Gnupg-users
mailing list