How to install PGP
You can install PGP either by using the precompiled
binaries, or by compiling from source. If you have downloaded the
precompiled binaries, all the information you need is in the
README file. If you are compiling from source, and have
downloaded the pgp262.tar.gz source file, use the
following instructions:
- Create a directory called
pgpin the directory/tmp, and move thepgp262.tar.gzfile into it. Issue the following commands to decompress and unarchive the file: # gunzip pgp262.tar.gz # tar -xvf pgp262.tar.gzYou will then have the following files:
setup.doc rsaref.tar rsaref.tar.asc pgp262si.tar pgp262si.tar.asc - Issue the following commands to unarchive the source files: # tar -xvf rsaref.tar # tar -xvf pgp262si.tar
- Change to the directory
rsaref/install/unixand invoke themakecommand. You will have to specify your computer's platform (issuingmakewithout arguments will get you a list of choices. Seesetup.docfor additional makefile changes). You should end up with an executable file calledpgp.
Before you install PGP, run the following tests (do
not create your real public key yet, this is just for testing the
pgp executable):
- Create a public/secret key pair by issuing the command
./pgp -kg. You will see something similar to the following output: Pretty Good Privacy (tm) 2.6.2 - Public-key encryption for the masses. (c) 1990-1994 Philip Zimmerman, Phil's Pretty Good Software. 11 Oct 94 Uses the RSAREF (tm) Toolkit, which is copyright RSA Data Security, Inc. Distributed by the Massachusetts Institute of Technology. Export of this software my be restricted by the U.S. government. Current time: 1997/11/07 14:43 GMT Pick your RSA key size: 1) 512 bits- Low commercial grade, fast but less secure 2) 768 bits- High commercial grade, medium speed, good security 3) 1024 bits- "Military" grade, slow, highest security Choose 1, 2, or 3, or enter desired number of bits: - While you can select any key size for the sake of the test, using fewer than a 1024-bit key size is not recommended practice, even for testing. Choose 3; you will then see the following: You need a user ID for your public key. The desired form for this user ID is your name, followed by your Email address enclosed in >angle brackets <, if you have an Email address. For example: John Q. Smith >12345.6789@compuserv.com< Enter a user ID for you public key:
- Use
testas the user ID. You will then see: You need a pass phrase to protect your RSA secret key. Your pass phrase can be any sentence or phrase and may have many words, spaces, punctuation, or any other printable characters.Enter a pass phrase for this test.
- Add the keys from the file
keys.ascto the public keyring by entering./pgp -ka keys.asc. PGP will then ask you if you want to sign the keys you are adding. Answeryesfor at least one key.
- Do a keyring check by issuing the command
./pgp -kc.
- Encrypt
pgpdoc1.txtby entering./pgp -e pgpdoc1.txt test -o testfile.pgp.
- Decrypt
testfile.pgpby typing./pgp testfile.pgp. This should produce the filetestfile, which you can compare with the original file,pgpdoc1.txt.
- If everything went well, you can copy
pgpto a bin directory, such as/usr/bin.
Last modified on May 13, 2009.







