...
Install pgp
If you are a Mac user and have macports installed then simply install pgp with the command:Inget format sudo port install gnupg
For Windows user download the GpG software http://www.gpg4win.org/ and install the application. You may need to restart the machine.
Create key-pair
Inget format gpg --gen-key
List keys
Inget format gpg --list-keys gpg --list-secret-keys
Keys will be listed in the following format where the key id, nnnnnnnn, is the most important:
Inget format pub mmmmm/nnnnnnnn date uid name <email> sub mmmmm/ssssssss date
Distribute public key
Inget format gpg --keyserver hkp://pgp.mit.edu --send-keys nnnnnnnn
Define the default key
If you have only one private key then you can skip this step. If you have more than one private key you can define a default key by editing the configuration file:Inget format mate ~/.gnupg/gpg.conf
And set the default-key option to your preferred default key:
Inget format # If you have more than 1 secret key in your keyring, you may want to # uncomment the following option and set your preferred keyid. default-key nnnnnnnn
...