Page MenuHome GnuPG

--send-keys requires key ID, not a name as specified in man page
Closed, ResolvedPublic

Description

Release: 1.4.2.2

Environment

Mac OS X 10.4.5.
Ubuntu 5.10

Description

The man page differs from the implementation.

The man page states:

--send-keys [names]

Same as --export but sends the keys to a keyserver. Option --keyserver must be used to give the name of this keyserver. Don't send your complete keyring to a keyserver - select only those keys which are new or changed by you.

--export [names]

Either export all keys from all keyrings (default keyrings and those registered via option --keyring), or if at least one name is given, those of the given name. The new keyring is written to stdout or to the file given with option "output". Use together with --armor to mail those keys.

--recv-keys key IDs

Import the keys with the given key IDs from a HKP keyserver. Option --keyserver must be used to give the name of this keyserver.

What I expect to happen:
You should be able to specify a name or e-mail address using --send-keys, the same as you can with --export.

What actually happens:
--send-keys requires a key-id, the same as --recv-keys does.

How To Repeat

Steps to reproduce:

  1. gpg --list-keys and note the e-mail address, name, and key ID of a key.
  2. gpg --keyserver a.key.server.com --send-keys KEY ID 2a) This works -- gpg will submit the key to the keyserver.
  3. gpg --keyserver a.key.server.com --send-keys EMAIL_ADDRESS 3a) This will fail -- gpg reports "gpg: "EMAIL_ADDRESS" not a key ID: skipping"

Fix

Unknown

Event Timeline

Makes sense to be fixed. However we need to make sure that only one key is
sendand not actually a whole bunch of them (e.g. when using just a single letter).

werner lowered the priority of this task from High to Normal.Aug 4 2006, 9:42 PM

Fixed in the documentation.

@item --send-keys @codeIDs
@opindex send-keys
Similar to @option{--export} but sends the keys to a keyserver.
Fingerprints may be used instead of key IDs. Option @option{--keyserver}
must be used to give the name of this keyserver. Don't send your
complete keyring to a keyserver --- select only those keys which are new
or changed by you.