How to sign with non-subkey?

David Shaw dshaw at jabberwocky.com
Tue Mar 21 17:34:09 CET 2006


On Tue, Mar 21, 2006 at 04:02:51PM +0100, Simon Josefsson wrote:
> I recently created a signing sub-key (on a smartcard, if it matters)
> and gpg now use it by default.  How do I sign messages using my
> non-subkey?  I thought -u would do it, but it doesn't seem to work:
> 
> jas at latte:~$ echo foo |gpg -a -s -v -u b565716f
> gpg: using subkey AABB1F7B instead of primary key B565716F
> gpg: writing to stdout

Put a ! after the key ID to tell GPG that you want that exact key.

David



More information about the Gnupg-users mailing list