This is a mirror of official site: http://jasper-net.blogspot.com/

11 GPG Commands One Should NEVER Forget

| Thursday, February 17, 2011
GnuPG is the GNU project's complete and free implementation of the OpenPGP standard as defined by RFC4880 . GnuPG allows to encrypt and sign your data and communication, features a versatile key management system as well as access modules for all kinds of public key directories.

1. Create GPG Keys
$ gpg --gen-key  

2. List the available keys in your keyring
$ gpg --list-keys  

3. Exporting the public key - by user id
$ gpg --armor --export <uid>  
 
Example :  
$ gpg --armor --export prabath@wso2.com  

4. Importing a public key of a trusted user to your keyring
$ gpg --import wso2.gpg  

5. Encrypting a document - you need to import the public key corresponding to the uid-of-recipient first in to your keyring as per step - 4.
$ gpg --output <output-file>  --encrypt --recipient <uid-of-recipient>  <input-file>  
 
Example :  
$ gpg --output test.txt.gpg  --encrypt --recipient prabath@wso2.com  test.txt  

Read more: F A C I L E L O G I N

Posted via email from Jasper-net

0 comments: