UIDs on secret keys

JanuszA.Urbanowicz JanuszA.Urbanowicz
Thu Jul 18 22:41:10 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello

This is more a feature request than a bugreport. The problem is as follows:
whena updated version of a public key, with new UIDs, is imported, there ar=
en't
corresponding UIDs added to the private key. Example:

Subshell:alex@syjon:[~]:5:> gpg -k alex@sword

pub  1024D/21939169 1997-09-24 Janusz A. Urbanowicz <alex@bofh.net.pl>
uid                            Janusz A. Urbanowicz <alex@bofh.org.pl>
uid                            Janusz A. Urbanowicz <alex@bofh.torun.pl>
uid                            Janusz A. Urbanowicz (Jabber ID) <stomil@jab=
ber.org>
uid                            Janusz A. Urbanowicz <alex@hell.pl>
uid                            Janusz A. Urbanowicz (ICM) <alex@icm.edu.pl>
[...]
Subshell:alex@syjon:[~]:1:> gpg --list-secret-keys
/home/alex/.gnupg/secring.gpg
- -----------------------------
sec  1024D/21939169 1997-09-24 Janusz A. Urbanowicz <alex@eris.phys.uni.tor=
un.pl>
uid                            Janusz A. Urbanowicz <alex@bofh.org.pl>
uid                            Janusz A. Urbanowicz <alex@bofh.torun.pl>
uid                            Janusz A. Urbanowicz (notebook) <alex@sword>
uid                            Janusz A. Urbanowicz (ICM) <alex@icm.edu.pl>
uid                            Janusz A. Urbanowicz (Jabber ID) <stomil@jab=
ber.org>

Secret key shows two revoked UIDs (alex@sword & alex@eris) while it lacks
two UIDs imported later - it is impossible to select signing key by one of
the missing UIDs:

Subshell:alex@syjon:[~]:6:> gpg -u alex@bofh.net.pl --detach-sign foo
gpg: skipped =01lex@bofh.net.pl': secret key not available
gpg: signing failed: secret key not available

There are two possible solutions: adding UIDs to secret key as they are
meged into public key (this is how PGP 2 did it), or use indirect lookup of
the secret key - find long key id corresponding to given UID in public keys,
and then find the secret key of given key ID.

Alex
- --=20
C _-=3D-_ H Janusz A. Urbanowicz, stomil at jabber.org, PGP 0x21939169    *=
  =09
 ; (_O :  ----------------------------------------------------------- --+~|=
=09
 ! &~) ?  P=B3yn=B1=E6 chc=EA na Wsch=F3d, za Suez, gdzie jest dobrem ka=BF=
de z=B3o l_|/=09
A ~-=3D-~ O Gdzie przykaza=F1 brak dziesi=EAciu, a pi=E6 mo=BFna a=BF po dn=
o;       |  =20
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9NbtjTfkBjn4ugD0RAmpGAJ49cVGECmjwrjtMxzl1yxrmYOwpfwCeLGG4
Z8uBORp2Bl3LHC2RuwNBdQg=3D
=3DHBB8
-----END PGP SIGNATURE-----