
GnuPG Command Line Summary 179
Exporting a Key
To export the key to a text file, use the --export option.
(Because this file is plain text, you should use --armor.)
# gpg --output pubkey.mwlucas@blackhelicopters.org.gpg.asc
--armor --export mwlucas@blackhelicopters.org
Here we create a file called pubkey.mwlucas@black-
helicopters.org.gpg.asc
in human-readable format, which
contains an export of the key with a UID containing the
string mwlucas@blackhelicopters.org.
Sending a Key to a Keyserver
To send a public key to a keyserver, use the --send-keys option.
The --keyserver option lets you choose to which keyserver you
want to submit the ...