January 15, 2013

Installing and Using PGP with GNU Privacy Guard (GnuPG) on RHEL 6.3


In this blog I will show you how to use PGP client GNU Privacy Guard (GnuPG) on RHEL 6.3. PGP can be used to encrypt files which can be stored somewhere on remote disc or by sending as attached files.


Installation was quite smooth, except founding the missing dependency package pinentry-gtk, which should be installed automatically.

Test your installation

A simple test to see that GnuPG is installed properly is to ask for each version.


Creating Private Key Pair

The first thing to do, after installation was successful, is to generate the necessary keys used for encrypting and decrypting files. To generate you private key pair, do the following.

Exporting Public Key

To be able to receive encrypted files, you need to export your public key. The text files generated below can be emailed as attachment or more preferable distributed in a more secure way, such as manually handed over via USB memory.


Now you are ready to use GnuPG. A good tutorial guide for the most common usage can be found here http://www.glump.net/howto/gpg_intro.


1 comment:


I created the gnupg pgp key in fedora and shared my public key to remote team to encrypt a file whcih I need to download from their environment.

IS there anyway to enforce bouncy castle as the security provider while encrypting the file in the remote team side?