trying to export the sender key

Neil Williams neil@codehelp.co.uk
Mon Apr 14 13:29:22 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 13 Apr 2003 4:47 pm, Don Patou wrote:
> I've just created my keys from the gnupg tutorial on
> http://technocage.com/~caskey/gnupg/gpg-cmt.html. The problem is that when
> I try to export my sender key with this line:
>  "joe@debian:~/keys/recipient$ gpg --homedir  -a --export recipient"

If you use --homedir, you need to specify a directory for it to use. If you've 
followed the defaults, it'll be in ~/.gnupg/ and you won't need --homedir 
anyway.

Use ls -a ~
to list the entire contents of your home directory and look for .gnupg/

Replace recipient with the keyid (or leave blank to get all keys).

If you only have your key in place, use:
gpg -a --export > export.asc

This will create a text file called export.asc containing the public key.

> I get a:
>  "gpg: keyblock resource `-a/secring.gpg': file open error
> gpg: keyblock resource `-a/pubring.gpg': file open error

Because of the --homedir setting, gpg is misreading the -a option as a 
directory.

- -- 

Neil Williams
=============
http://www.codehelp.co.uk
http://www.dclug.org.uk

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+maf0k7DVr6iX/QIRAgz7AJ0YkhL6EEOtHKmJPvjqoSWGtP2bDQCfS4UC
7UTQ32A2ZvzIKKj4/jitqxA=
=8cu0
-----END PGP SIGNATURE-----