Here follows some step-by-step instructions on how to compile and set up PGP 2.6.3i on a typical Unix system.
This document gives extra installation information not present or not clear (to me, anyway) in the existing documents and FAQs. The hints below are a result of some trial and error! Also note that there is a hot and new PGP version (5.0). Check out The International PGP Home Page.
Disclaimer: usage of this information is completely at your own risk. I have tried to be as accurate as possible but can not be held responsible for it in any way. I was pretty new in the PGP area, when I wrote this ;-). Questions should NOT be emailed to me, but to email@example.com.
$is the prompt):
$ gunzip pgp263is.tar.gz
$ tar xvf pgp263is.tar
$ tar xvf pgp263ii.tar
$ cd src $ make sun4gcc
$HOMEif you're not using bash or a C-shell.
$ mkdir ~/.pgp $ chmod 700 ~/.pgp $ ./pgp -kgAdd the keys from the file 'keys.asc' to your public key ring and sign at least one key:
$ ./pgp -ka ../keys.ascDo a keyring check:
$ ./pgp -kcEncrypt and decrypt the file 'pgpdoc1.txt' in the 'doc' subdirectory and compare (diff) afterwards. There should be no differences:
$ ./pgp -e ../doc/pgpdoc1.txt test -o testfile.pgp $ ./pgp testfile.pgp $ diff ../doc/pgpdoc1.txt testfile
$ mv pgp /usr/local/bin $ mv ../doc/pgp.1 /usr/local/man/man1 $ mv ../doc /usr/local/info/pgp
$ cd ~/.pgp $ rm pubring.* secring.*Generate your true key now (pgp -kg). Military grade (1024 bits) is best. The userid should be something like:
James Bond <firstname.lastname@example.org>Copy the 'config.txt' to the ~/.pgp PGP directory and replace the entry 'MyName' appropiately with a substring of the userid you entered above, e.g. "James Bond". You may have to change the permissions first with:
$ chmod u+w config.txtBut don't forget to set them back afterwards:
$ chmod u-w config.txtWhat to do with existing public and/or secret key rings: Existing key rings (e.g. from your Dos PGP version) can be added to the Unix PGP version by extracting the keys to an ascii file. Important note: if you want to use the same secret key under Unix, you must add the 'secring.pgp' key ring to your (empty) Unix secret key ring _before_ adding the public keys! In that case, answer 'yes' when this question pops up:
... also appears in the secret key ring. Use this key as an ultimately-trusted introducer (y/N)?It is questionable to put your secret key ring on a multi-user system (such as Unix). For more info, consult one of the PGP FAQs.
We continue with our example for the public keys (when adding secret key(s) replace 'pubring' with 'secring'). Under Dos do this (PGP is in 'c:\pgp' and 'c:\>' is the prompt):
c:\> pgp -at c:\pgp\pubring.pgpAdd the generated file 'pubring.asc' to the Unix key ring. The file 'pubring.asc' should NOT be in your PGP home directory (~/.pgp); use a working directory for this. It is a good idea to protect this directory from access by others ('chmod 700 the_dir').
$ pgp ./pubring.ascAnswer 'yes' (simply give a return) to the rename question and then re-run pgp:
$ pgp ./pubring.pgpAnswer 'yes' to the adding question.
Happy and secure e-mailing!
There's no page like home page.