Indiana University
University Information Technology Services
  
What are archived documents?
Login>>
Login

Login is for authorized groups (e.g., UITS, OVPIT, and TCC) that need access to specialized Knowledge Base documents. Otherwise, simply use the Knowledge Base without logging in.

Close

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:

  1. Create a directory called pgp in the directory /tmp, and move the pgp262.tar.gz file into it. Issue the following commands to decompress and unarchive the file: # gunzip pgp262.tar.gz # tar -xvf pgp262.tar.gz

    You will then have the following files:

    setup.doc rsaref.tar rsaref.tar.asc pgp262si.tar pgp262si.tar.asc
  2. Issue the following commands to unarchive the source files: # tar -xvf rsaref.tar # tar -xvf pgp262si.tar
  3. Change to the directory rsaref/install/unix and invoke the make command. You will have to specify your computer's platform (issuing make without arguments will get you a list of choices. See setup.doc for additional makefile changes). You should end up with an executable file called pgp.

Before you install PGP, run the following tests (do not create your real public key yet, this is just for testing the pgp executable):

  1. 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:
  2. 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:
  3. Use test as 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.

  4. Add the keys from the file keys.asc to the public keyring by entering ./pgp -ka keys.asc . PGP will then ask you if you want to sign the keys you are adding. Answer yes for at least one key.

  5. Do a keyring check by issuing the command ./pgp -kc .

  6. Encrypt pgpdoc1.txt by entering ./pgp -e pgpdoc1.txt test -o testfile.pgp .

  7. Decrypt testfile.pgp by typing ./pgp testfile.pgp . This should produce the file testfile, which you can compare with the original file, pgpdoc1.txt.

  8. If everything went well, you can copy pgp to a bin directory, such as /usr/bin.
This is document amkh in domain all.
Last modified on May 13, 2009.

Comments/Questions/Corrections

Use this form to offer suggestions, corrections, and additions to the Knowledge Base. We welcome your input!

If you are affiliated with Indiana University and would like assistance with a specific computing problem, please use the Ask a Consultant form, or contact your campus Support Center.

Contact Information

Note: We will reply to your comment at this address. If your message concerns a problem receiving email, please enter an alternate email address.