how to transfer a secret key to another comp?

Neil Williams linux at codehelp.co.uk
Wed Jun 16 10:24:49 CEST 2004


On Wednesday 16 June 2004 8:26, Bruno Boettcher wrote:
> laptop:~/$ gpg --sign testfile
> gpg: secret key parts are not available
> gpg: no default secret key: general error

You are asking gpg to sign the file without specifying a key to use to create 
the signature, either as a default key (~/.gnupg/gpg.conf) or on the command 
line.
from man gpg:
      -u, --local-user name
                 Use  name  as the user ID to sign with.  This option is 
silently ignored for the list commands, so that
                 it can be used in an options file.

laptop:~/$ gpg -u KEYID --sign testfile

or in ~/.gnupg/gpg.conf :
default-key  KEYID

You can always override the default if you have a second secret key to hand:

neil at garfield:~$ gpg -u a897fd02 --sign dead.letter

You need a passphrase to unlock the secret key for
user: "Neil Williams (laptop) "
1024-bit DSA key, ID A897FD02, created 2002-01-27

neil at garfield:~$ gpg --verify dead.letter.gpg
gpg: Signature made Wed Jun 16 09:23:13 2004 BST using DSA key ID A897FD02
gpg: Good signature from "Neil Williams (laptop) "


-- 

Neil Williams
=============
http://www.codehelp.co.uk/
http://www.dclug.org.uk/
http://www.isbn.org.uk/
http://sourceforge.net/projects/isbnsearch/

http://www.biglumber.com/x/web?qs=0x8801094A28BCB3E3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
Url : /pipermail/attachments/20040616/fbf2ab44/attachment.bin


More information about the Gnupg-users mailing list