Mailing List Archive

Problem importing keys with multiple UIDs?
I'm having trouble importing a GPG key with multiple UIDs:

$ gpg foo.asc
gpg (GnuPG) 0.9.1; Copyright (C) 1999 Free Software Foundation, Inc.

pub 1024D/F7B083C7 1999-01-10 Foo Bar (Long-Term Key) <foo@foobar.com>
uid Foo Bar <foo@foobar.org>
uid Foo Bar <foo@foobar.net>
uid Foo Bar <foo@mit.edu>
uid Foo Bar <foo@anotherdomain.com>
uid Foo Bar <foo@anotherdomain.to>
sub 4096g/066EB82C 1999-01-10

That looks OK. But when I try to import it:

$ gpg --import foo.asc
gpg (GnuPG) 0.9.1; Copyright (C) 1999 Free Software Foundation, Inc.

gpg:foo.asc: key F7B083C7: invalid self-signature
gpg:foo.asc: key F7B083C7: public key imported
gpg: Total number processed: 1
gpg: imported: 1

...it fails the self-signature, and doesn't list any sub keys:

$ gpg --list-keys
gpg (GnuPG) 0.9.1; Copyright (C) 1999 Free Software Foundation, Inc.

/home/roger/.gnupg/pubring.gpg
------------------------------
[...]
pub 1024D/F7B083C7 1999-01-10 Foo Bar (Long-Term Key) <foo@foobar.com>
uid Foo Bar <foo@foobar.org>
uid Foo Bar <foo@foobar.net>
uid Foo Bar <foo@mit.edu>
uid Foo Bar <foo@anotherdomain.com>
uid Foo Bar <foo@anotherdomain.to>

...and, of course:

$ gpg -ar foo@foobar.com --encrypt test
gpg (GnuPG) 0.9.1; Copyright (C) 1999 Free Software Foundation, Inc.

gpg: No key for userid
gpg: foo@foobar.com: skipped: public key not found
gpg: test: encryption failed: public key not found

Did "Mr. Bar" fail to properly self-sign his key before he distributed
it? Or does GPG have a problem with multiple-UID public keys? Sorry
about the bandwidth, but I didn't find a resolution to this problem in
the mailing list.

Thanks!

--
Roger Williams finger me for my PGP public key
Coelacanth Engineering Inc consulting & turnkey product development
Middleborough, Massachusetts wireless * datacomm * DSP * ATE
tel +1 508 947-5585 * fax +1 508 861-0278 * http://www.coelacanth.com/