GPG:Export

From Hackepedia
Jump to navigationJump to search

Once you have a GnuPG key pair, you will most likely want to export your public key.

$ gpg --list-keys
pub   1024D/7482556C 2004-08-26 [expired: 2005-08-26]
uid   Yasholomew Yashinski (When you send mail, do you use a postcard or envelope?)  <[email protected]>

I can see here my key that I want to export, so I would do

$ gpg --export 7482556C -a -o yashy.asc

Where -a means ascii encoded, and -o is what you want the output file to be called. Now I can upload yashy.asc to my favourite public keyserver or send to my friend(s) that want to to communicate with.