|
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
|