exporting and importing keys
Todd
Todd <Freedom_Lover@pobox.com>
Tue Mar 11 02:32:01 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Chad McCullough wrote:
> I just created my very first gpg key. I read the Howto and was able to
> create the key but I'm a little confused on exporting the key and where
> it's placed when I export it.
By default, the --export option will send your key to stdout (usually, the
screen). If you are exporting your key for storage or to send to someone
you could use a command like this:
gpg --armor --export your_user_id > chad.asc
replacing 'your_user_id' with, well, your user id. See the gpg man page
section titled 'How to specify a user ID' for info on the many ways you can
specify a user id.
> Also, when importing someone elses key, is it stored in the same place?
When you import a key, it's added to your public keyring. By default, this
is stored in ~/.gnupg/pubring.gpg.
> I'm using Mutt (just in case you need that information).
Well, it tells me you have good taste. :)
Seriously, mutt has very good gpg integration. For example, if you want to
email your key to a friend, you can type <ESC>k and mutt will prompt you
for a key id. It will then extract the key in an ASCII armored format and
attach it to a message.
To import a key you receive via email, you can type ^K (that's CTRL-K) to
extract it and add it to y our keyring. Mutt does indeed suck less. :)
- --
Todd OpenPGP -> user_id: 0xD654075A | URL: www.pobox.com/~tmz/pgp
============================================================================
I think it would be a good idea.
-- Mohandas Gandhi (1869-1948),
when asked what he thought of Western civilization
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: When crypto is outlawed bayl bhgynjf jvyy unir cevinpl.
iD8DBQE+bTzluv+09NZUB1oRAnJzAKCYiQ9ZqmaIzaRkC+Q1O0TtUkVamACeL/QM
Lt9x9T7OHtdhQkqECQmo2ss=
=B7WO
-----END PGP SIGNATURE-----