List Info

Thread: incorrect subkey used for signing




incorrect subkey used for signing
user name
2006-06-26 21:59:04
Tested & Affected: GnuPG 1.4.3, 1.4.4
Summary:
gpg/g10 ignores the parameters to select a specific subkey
using either the
local-user parameter or the default-key parameter. Both the
command line and
config file versions are ignored.

Pay attention to key 3233C22C.
Some emphasis added to the below log.

Log:
$ gpg --with-colons --list-keys 0x34884E85
tru::0:1151309885:1152151040:3:1:5
pub:u:1024:17:B27B944E34884E85:2002-08-27:2008-03-09::u:Robi
n Hugh Johnson <robbat2orbis-terrarum.net>::scESCA:
uid:r::::::7F90208ADC2095DC95838B3F185835A4F19888B9::Robin
Hugh Johnson <rjohnsobsfu.ca>:
uid:u::::2005-03-10::73D52E9999BF413B6262A5E075A7F56B63A208F
B::Robin Hugh Johnson <robbat2users.sourceforge.net>:
uid:u::::2006-06-23::E5E16CADC6D71856034B8B0B7324C6698829DFC
B::Robin Hugh Johnson <robbat2gentoo.org>:
uid:r:::::936479E0
731BFFFDB888E32B4D00E9665D16C2D::Robin Hugh Johnson
<rhjsfu.ca>:
uid:r::::::610A8F7CE7490D0B3D2CB9F59DFF4271F025B6B9::Robin
Hugh Johnson <robbat2sfu.ca>:
uid:r::::::F26E4F3C6A3193048F6496AF6B32D256DB58A3BC::Robin
Hugh Johnson <robbat2hotmail.com>:
uid:r::::::3E1D6342532650216CAF62C2D869EBC6D0266BDD::Robin
Hugh Johnson <robincorasen.com>:
uid:r::::::A3C07032FF409222B9DC368560256423860DF813::Robin
Hugh Johnson <robbat2net-conex.com>:
uid:u::::2006-06-23::65344CD246D49E07ECDC4E7C1CF138DF203C795
0::Robin Hugh Johnson <robbat2livejournal.com>:
sub:u:2048:16:92C71245CA05A397:2002-08-27:2008-03-09:::::e:
sub:u:2048:16:A5A2BA5867592A1F:2003-04-12:2008-03-09:::::e:
sub:r:1024:17:216C1775FB33B3A4:2002-08-27:2006-02-18:::::sa:
sub:r:2048:16:49A3B54ACC772FC3:2002-08-27:2006-02-18:::::e:
sub:u:1024:17:3E922C223233C22C:2004-08-29:2008-03-09:::::s:
<--- this key should be used
sub:u:1024:17:7D71DFE0A8E87991:2006-06-23:2008-06-22:::::a:
sub:u:1024:17:3E0625AE9CA1EFD7:2006-06-23:2008-06-22:::::s:
sub:u:2048:1:06F5B44166D8F49B:2006-06-23:2008-06-22:::::esa:

$ gpg --verbose -u 0x3233C22C --output test.sign --armor
--textmode --clearsign test.c
gpg: no secret subkey for public subkey FB33B3A4 - ignoring
gpg: no secret subkey for public subkey CC772FC3 - ignoring
gpg: using subkey 66D8F49B instead of primary key 34884E85

You need a passphrase to unlock the secret key for
user: "Robin Hugh Johnson <robbat2orbis-terrarum.net>"
gpg: using subkey 66D8F49B instead of primary key 34884E85
2048-bit RSA key, ID 66D8F49B, created 2006-06-23 (main key
ID 34884E85)

gpg: gpg-agent is not available in this session
gpg: writing to `test.sign'
gpg: RSA/SHA1 signature from: "66D8F49B Robin Hugh
Johnson <robbat2orbis-terrarum.net>"

$ gpg --verbose --verify test.sign
gpg: armor header: Hash: SHA1
gpg: armor header: Version: GnuPG v1.4.4 (GNU/Linux)
gpg: armor header: Comment: Robbat2  Orbis-Terrarum Networks
gpg: original file name=''
gpg: Signature made Mon Jun 26 14:42:46 2006 PDT using RSA
key ID 66D8F49B
gpg: using subkey 66D8F49B instead of primary key 34884E85
gpg: using classic trust model
gpg: Good signature from "Robin Hugh Johnson
<robbat2orbis-terrarum.net>"
gpg:                 aka "Robin Hugh Johnson
<robbat2users.sourceforge.net>"
gpg:                 aka "Robin Hugh Johnson
<robbat2gentoo.org>"
gpg:                 aka "Robin Hugh Johnson
<robbat2livejournal.com>"
gpg: textmode signature, digest algorithm SHA1




-- 
Robin Hugh Johnson
E-Mail     : robbat2orbis-terrarum.net
Home Page  : http:
//www.orbis-terrarum.net/?l=people.robbat2
ICQ#       : 30269588 or 41961639
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488
4E85
_______________________________________________
Gnupg-devel mailing list
Gnupg-develgnupg.org
h
ttp://lists.gnupg.org/mailman/listinfo/gnupg-devel
incorrect subkey used for signing
user name
2006-06-26 22:19:57
On Mon, Jun 26, 2006 at 02:59:04PM -0700, Robin H. Johnson
wrote:
> Tested & Affected: GnuPG 1.4.3, 1.4.4
> Summary:
> gpg/g10 ignores the parameters to select a specific
subkey using either the
> local-user parameter or the default-key parameter. Both
the command line and
> config file versions are ignored.

Not a bug, but a feature.  If you want to force the use of a
specific
subkey, overriding the subkey-choosing logic in GPG, you
must append a
"!" to the key ID.

From the manual:

       Note that you can append an exclamation mark (!) to
key IDs or
       fingerprints.  This flag tells GnuPG to use the
specified
       primary or secondary key and not to try and calculate
which
       primary or secondary key to use.

David

_______________________________________________
Gnupg-devel mailing list
Gnupg-develgnupg.org
h
ttp://lists.gnupg.org/mailman/listinfo/gnupg-devel
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )