How to select a specific subkey for signing?

David Shaw dshaw@jabberwocky.com
Mon Jun 17 14:20:07 2002


On Mon, Jun 17, 2002 at 01:20:26PM +0200, Mark Doll wrote:
> Since the "default-key" option just selects a whole key and not a specific 
> subkey, I currently use a different secret keyring with just the desired 
> subkey in it to "force" signing with that subkey. I wonder if there's a 
> nicer solution to this problem.

Yes.  Stick a "!" after the keyid you specify and GnuPG will use it
verbatim.

  gpg -u 0xDF2D08D3! --sign .....

David

-- 
   David Shaw  |  dshaw@jabberwocky.com  |  WWW http://www.jabberwocky.com/
+---------------------------------------------------------------------------+
   "There are two major products that come out of Berkeley: LSD and UNIX.
      We don't believe this to be a coincidence." - Jeremy S. Anderson