Set key to be default to sign/encrypt

Hauke Laging mailinglisten at
Thu Apr 7 19:26:04 CEST 2011

Am Donnerstag 07 April 2011 14:26:50 schrieb Csabi:

> The default-key option in gpg.conf is not operate me, if i using it
> then the following error message appear: Failed to sign, secret key is
> not available.
> How can i set this new keipair to be default?

You ask the wrong question. The question is not how to make an unusable key 
the default but how to get this key working.

What happens if you try to sign something with this key?

gpg -u 12345678 --detach-sign file

PGP: D44C 6A5B 71B0 427C CED3 025C BD7D 6D27 ECCB 5814
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 555 bytes
Desc: This is a digitally signed message part.
URL: </pipermail/attachments/20110407/3d24efe3/attachment.pgp>

More information about the Gnupg-users mailing list