Install/Configure GPG (GNU Privacy Guard)
Linux HowTo's - Beginner Linux HowTo's
Written by Tim Inkpen   
Sunday, 25 May 2008 13:13

In this howto, we will show you how to Install/Configure GPG (GNU Privacy Guard)

For CentOS:

Step 1  -Install

As root (su -, then the root password):

yum install gpg

(select y)

It will then install

 


Step 2 –Locate Program

Locate GPG on your system:

whereis gpg

You should get back:

gpg: /usr/bin/gpg

Step 3 –Change user rights

So everyone can use it:

chmod u+s /usr/bin/gpg

Step 4 –Create Files for GPG to Work

/usr/bin/gpg --gen-key [for root]

Step 5 –Configuring Key

Accept the defaults

Step 6- Verify

gpg --list-secret-key

gpg --list-public-key

gpg --list-sig

Step 7 – Create Revocation Certificate

gpg --output revoke.asc --gen-revoke your_email_name@your_service_provider.com [or ca, etc.]

Step 8 –Export Your Public Key

gpg --export --armor > yourname.asc

Step 9 – Import Someone Else’s Key

Download key

gpg --import arnoldSW.asc

Step 10 –Sign Downloaded Key

 gpg –signarnoldSW.asc

 

Create a Signature File

Example .. touch <yourname>
touch yourname

gpg –clearsign yourname

 

Decrypt Files

gpg –decrypt yourfriendsfile.txt.gpg > yourfriendsfile.txt

Encrypt Files

gpg --encrypt --r public_keyname_of_recipientyourfile.txt

 

 



Add this page to your favorite Social Bookmarking websites
Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Live! Facebook! StumbleUpon! Yahoo! Free Joomla PHP extensions, software, information and tutorials.
Comments
Search RSS
Only registered users can write comments!

3.22 Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

Last Updated on Sunday, 01 June 2008 16:19