gpg 1.0.2 using expired key

jamus jegier jamus@jamus.com
Sun, 16 Jul 2000 21:03:56 -0400


I have a key that has a expired subkey and a valid subkey.  When I
encrypt using this key with gpg, it uses the expired subkey.  I can use
the correct subkey by specifing the subkey ID (3A55B778) using -r, and
the main key ID (A5ACC779), but not by using "jamus".  Is this a bug?

screen dumps & gpg public key follow:

jamus

gpg -r A5ACC779 --encrypt readme.txt
gpg: using secondary key 3A55B778 instead of primary key A5ACC779

---------------------

gpg --list-key jamus

pub  1024D/A5ACC779 1999-07-24 jamus jegier <jamus@jamus.com>
uid                            Thawte Freemail Member <jamus@jamus.com>
sub  1024g/2770CDE6 1999-07-24 [expires: 2000-05-25]
sub  1024g/3A55B778 2000-06-04 [expires: 2001-06-04]

---------------------

gpg -r jamus --encrypt readme.txt

gpg: key 2770CDE6.59: expired at Thu 25 May 2000 06:44:49 PM EDT
gpg: 2770CDE6: key has expired
1024g/2770CDE6 1999-07-24 "jamus jegier <jamus@jamus.com>"



-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.0.2 (GNU/Linux)
Comment: For info see http://www.gnupg.org

mQGiBDeZ04YRBACWrLEf/aTES8MT11N3tYrOrRyPfIM55agKA5aOlGPTnl58Ff1L
/bejFXTIWobqbd00+uSI4l6Z+ZaSz/HbMLbDqV13kHemJqWp/c6M36aitot+pg1v
5ggrjBp9W4g7sho8+MyUjzgFXCNf2Hi5G+Cmz/+L7CvmQVlKbmzwiCKC8wCghaHq
uiF2JeViiPATtM6BwoD7tAUEAJHSAOmmbM6uBmlTXVP+cO/FfS3SDcKFjQ+Acmp0
TR7UoQm30IVLy7LCbMGKQeK31EsjBVPEKx/rxlSIF0LNzKcpQgTU9YeAuW/xNGNT
pwG2Xewj4Qqqb9TtkrvYGk7yO1PKiUolYrkE1B18OOT0ls2Suq2v9m+v8PEtcP7/
/wigA/0RX2rq8BtrNP2qnRvMYrZyYzfZtoCZfe2D3MH6Lr+1L0rZkwfhw6TiCPDQ
3rVezHW7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