Linux : How to export public key for others/friends or your recipients

by nixcraft on April 8, 2005 · 0 comments

1) Login to your shell account

2) Use --export option to export your public key in text file
$ gpg --export –a > my.key
OR
$ gpg --export -a | mail -s "My key" friend@domain.com

Where
-a --armor : Create ASCII armored output.
--export : Export the key for sharing

First command write output to file my.key and second directly sends an email to your friend. Once my.key delivered to friend, he/she need to import it using the following command (aka adding keys to your keyring):
$ gpg --import my.key

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

We're here to help you make the most of sysadmin work. So, subscribe!

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 2 + 2 ?
Please leave these two fields as-is:
Are you a human being? Solve the simple math so we know that you are a human and not a bot.



Previous post:

Next post: