Problem importing keys with multiple UIDs?

Roger Williams roger at coelacanth.com
Mon Jan 11 17:18:12 CET 1999


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 at foobar.com>
  uid                            Foo Bar <foo at foobar.org>
  uid                            Foo Bar <foo at foobar.net>
  uid                            Foo Bar <foo at mit.edu>
  uid                            Foo Bar <foo at anotherdomain.com>
  uid                            Foo Bar <foo at 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 at foobar.com>
  uid                            Foo Bar <foo at foobar.org>
  uid                            Foo Bar <foo at foobar.net>
  uid                            Foo Bar <foo at mit.edu>
  uid                            Foo Bar <foo at anotherdomain.com>
  uid                            Foo Bar <foo at anotherdomain.to>

...and, of course:

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

  gpg: No key for userid
  gpg: foo at 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/




More information about the Gnupg-devel mailing list