home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 2 / RISC_DISC_2.iso / pd_share / utilities / cli / pgp2 / setup_doc < prev   
Encoding:
Text File  |  1995-04-29  |  12.9 KB  |  307 lines

  1.  
  2.                    Pretty Good Privacy Version 2.6.2i
  3.                            Installation Guide
  4.  
  5.               by Perry Metzger, Colin Plumb, Derek Atkins,
  6.                      Jeffrey I. Schiller and others
  7.  
  8.                Modified for PGP 2.6.2i by Stale Schumacher
  9.  
  10.  
  11. How to Install PGP
  12. ==================
  13.  
  14. The first question is, what platform are you on?
  15.  
  16. The  base PGP 2.6.2i distribution runs on  several  varieties  of  Unix,
  17. MS-DOS,  OS/2,  Atari,  Archimedes  and  VMS.   Naturally,  installation
  18. instructions  differ depending  on your hardware.  Separate instructions
  19. are provided here for MSDOS, Unix and VMS.
  20.  
  21. See  the  section  below  for   your  system's  particular  installation
  22. instructions.
  23.  
  24. If you do not have any  of  these  systems, you will either have to port
  25. the sources to your machine or find someone who has already done so.
  26.  
  27. ########################################################################
  28. For MSDOS:
  29.  
  30. PGP is distributed in a  compressed archive format, which keeps all  the
  31. relevant  files  grouped  together,   and  also  saves  disk  space  and
  32. transmission time.
  33.  
  34. The current  version, 2.6.2i, is archived with the ZIP utility,  and the
  35. PGP executable binary  release system  is in a  file  named PGP262I.ZIP.
  36. This contains the executable program, the user documentation,  and a few
  37. keys and signatures.   There is also a second file available  containing
  38. the C  and assembly  source code,  called PGP262IS.ZIP.   This should be
  39. available from the same source from which  you got PGP262I.ZIP.  If not,
  40. send  email  to  hypnotech-request@ifi.uio.no  with  "INFO PGP"  in  the
  41. subject field.
  42.  
  43. You  will need PKUNZIP  version 2.0 or later to uncompress and split the
  44. PGP262I.ZIP archive file into individual files. PKUNZIP is shareware and
  45. is widely available on MSDOS machines.
  46.  
  47. Create a directory  for the PGP files.  For this description, let's  use
  48. the directory  C:\PGP as an example,  but you should substitute your own
  49. disk  and  directory name if  you use something  different.  Type  these
  50. commands to make the new directory:
  51.  
  52.    c:
  53.    md \pgp
  54.    cd \pgp
  55.  
  56. Uncompress the distribution file PGP262I.ZIP to the directory.  For this
  57. example,  we will assume the  file  is  on  floppy  drive  A -  if  not,
  58. substitute your own file location.
  59.  
  60.    pkunzip -d a:pgp262i
  61.  
  62. This  will  create   the  file  PGP262II.ZIP  and  PGP262II.ASC.   Unzip
  63. PGP262II.ZIP with the command:
  64.  
  65.    pkunzip -d pgp262ii
  66.  
  67. If you omit the -d flag, all the  files in the  doc subdirectory will be
  68. deposited in the pgp directory. This merely causes clutter.
  69.  
  70. Keep the PGP262II.ZIP file around. Once you have PGP working you can use
  71. PGP262II.ASC to verify the digital signature on PGP262II.ZIP.  It should
  72. come from Stale Schumacher (whose key is included in KEYS.ASC).
  73.  
  74.  Setting the Environment
  75.  -----------------------
  76.  
  77. Next,  you can set an MSDOS "environment variable" to let PGP know where
  78. to find  its  special files,  in case you  use  it from  other than  the
  79. default  PGP  directory.   Use  your favorite  text  editor to  add  the
  80. following lines to your AUTOEXEC.BAT file (usually on your C: drive):
  81.  
  82.    SET PGPPATH=C:\PGP
  83.    SET PATH=C:\PGP;%PATH%
  84.  
  85. Substitute your own directory name if different from "C:\PGP".
  86.  
  87. The CONFIG.TXT file  contains  various preferences.  You  can change the
  88. language PGP operates in, and the character set it  uses.  The  IBM PC's
  89. default character set, "Code Page 850" will be used if the line "charset
  90. = cp850" appears in the config.txt file.   You probably want to add that
  91. line.
  92.  
  93. Another environmental variable you  should set in MSDOS is  "TZ",  which
  94. tells  MSDOS  what time zone  you  are  in, which  helps  PGP create GMT
  95. timestamps  for its  keys  and signatures.  If you properly define TZ in
  96. AUTOEXEC.BAT, then MSDOS gives you good GMT timestamps, and  will handle
  97. daylight savings  time adjustments for you.  Here are some  sample lines
  98. to insert into AUTOEXEC.BAT, depending on your time zone:
  99.  
  100. For Los Angeles:  SET TZ=PST8PDT
  101. For Denver:       SET TZ=MST7MDT
  102. For Arizona:      SET TZ=MST7
  103.    (Arizona never uses daylight savings time)
  104. For Chicago:      SET TZ=CST6CDT
  105. For New York:     SET TZ=EST5EDT
  106. For London:       SET TZ=GMT0BST
  107. For Amsterdam:    SET TZ=MET-1DST
  108. For Moscow:       SET TZ=MSK-3MSD
  109. For Aukland:      SET TZ=NZT-13
  110.  
  111. Now  reboot  your system to run AUTOEXEC.BAT, which will set  up PGPPATH
  112. and TZ for you.
  113.  
  114.  Generating Your First Key
  115.  -------------------------
  116.  
  117. One of the first things you  will want to  do  to really use PGP  (other
  118. than to test  itself) is to generate your own key.  This is described in
  119. more detail in the "RSA Key Generation" section of the PGP User's Guide.
  120. Remember that your key becomes something like  your written signature or
  121. your bank card code number or even a house key - keep it secret and keep
  122. it secure!  Use a long, unguessable pass phrase and remember  it.  Right
  123. after you generate  a key, put it on your key rings and copy your secret
  124. keyring (SECRING.PGP) to a blank floppy and write protect the floppy.
  125.  
  126. If  you  are a first-time user of PGP,  it is a  good idea to generate a
  127. short test key, with a short  passphrase, to play around with PGP for  a
  128. little bit and  see  how  it  works,  or even  more  than one so you can
  129. pretend  to be sending messages between two different people.  Since you
  130. won't be guarding any secrets, this can be  short and have a simple pass
  131. phrase.  But when you  generate your permanent  key, that  you intend to
  132. give to  others so  they can send secure messages  to you, be  much more
  133. careful.
  134.  
  135. After you generate your own key pair, you can add a few more public keys
  136. to your key ring.  A collection of  sample public keys is  provided with
  137. the release  in the file KEYS.ASC.  To add them to your public key ring,
  138. see the PGP  User's  Guide, in  the section on adding  keys  to your key
  139. ring.
  140.  
  141.  Verifying the PGP distribution
  142.  ------------------------------
  143.  
  144. Now that you have PGP up and  running and have read in the KEYS.ASC file
  145. you can now verify the  integrity of the original distribution.   To  do
  146. this type:
  147.  
  148.    pgp pgp262ii.asc
  149.  
  150. It will inform  you that  pgp26ii.asc contains a signature but  no text.
  151. It may then ask you to provide the name  of the file that it applies to.
  152. Type in "pgp262ii.zip", the internal ZIP file.
  153.  
  154. PGP should tell you that it has a Good Signature from:
  155.  
  156. Stale Schumacher <staalesc@ifi.uio.no>
  157.  
  158. It will also tell you that it doesn't "trust" this key.  This is because
  159. PGP does not *know* that the  enclosed key really belongs to me.   Don't
  160. worry about this now.  Read the section "How to Protect Public Keys from
  161. Tampering" in Volume 1 of the PGP manual.
  162.  
  163.  READ THE FINE MANUAL (RTFM)
  164.  ---------------------------
  165.  
  166. READ THE DOCUMENTATION.  At least read Volume I of the PGP User's Guide.
  167. Cryptography  software  is easy  to  misuse,  and if  you  don't  use it
  168. properly much  of the security  you could gain by using it will be lost!
  169. You might  also  be  unfamiliar  with  the  concepts  behind  public key
  170. cryptography; the manual explains these ideas.   Even if you are already
  171. familiar  with  public  key  cryptography,  it  is  important  that  you
  172. understand  the various security issues associated with  using PGP.  PGP
  173. may be an  unpickable  lock,  but you have  to  install  it in the  door
  174. properly or it won't provide security.
  175.  
  176. ########################################################################
  177. For UNIX:
  178.  
  179. You likely will have to compile  PGP for your system;  to do this, first
  180. make sure  the unpacked  files are  in  the correct unix textfile format
  181. (the files  in pgp262is.zip  are in MSDOS  CRLF format,  so for Unix you
  182. must  unpack  with  "unzip  -a";   the  tar  files   pgp262is.tar.Z  and
  183. pgp262is.tar.gz use normal Unix line feed conventions).
  184.  
  185. If you intend  to compile PGP  2.6.2i for  use within the USA,  you will
  186. need the RSAREF package written by RSA Data Security. It is NOT included
  187. with the PGP 2.6.2i distribution.
  188.  
  189. When  you untar  pgp262is.tar (either  compression format) you will find
  190. that it contains 4 files. pgp262ii.tar contains all non-binary files for
  191. PGP  including  all source code.  This  tar  archive  has  been  created
  192. assuming  that you  will untar it directly into your  PGP 2.6.2i "build"
  193. directory.  pgp262ii.asc is a detached digital signature of pgp262ii.tar
  194. (which  you can verify  after  you have PGP  operating,  see the section
  195. above titled "Verifying the  PGP Distribution").
  196.  
  197. If you don't have an  ANSI C compiler  you will need the unproto package
  198. written by  Wietse Venema.  unproto was  posted on comp.sources.misc and
  199. can  be  obtained  from the various  sites  that archive this  newsgroup
  200. (volume   23:   v23i012   and    v23i013)   or    ftp.win.tue.nl   file:
  201. /pub/programming/unproto4.shar.Z.   Read the file  README in the unproto
  202. distribution for instructions on how to use unproto.
  203.  
  204. If your system doesn't  have a target in the  makefile you  will have to
  205. edit the makefile, make sure you compile for the  correct byte order for
  206. your  system:  define  HIGHFIRST  if  your  system  is  big-endian  (eg.
  207. Motorola 68030).  There are  also  some  platform-specific parameters in
  208. the include  file "platform.h".  Some platforms may have  to modify this
  209. file.
  210.  
  211. If you successfully create a target rule for a new platform, please send
  212. the patches  to  pgp-bugs@ifi.uio.no,  so it can  be added  to the  next
  213. release.
  214.  
  215. Note: PGP 2.6.2i requires the  function memmove.  Not all machines  have
  216. this in the standard C library.  There  is an  implementation of memmove
  217. included  with  this  distribution.   If  you  find that  your  platform
  218. requires memmove,  but  the makefile  rule  for your  platform  does not
  219. include memmove (look at the  sun4gcc or sun386i rules for an example of
  220. how to include  it),  please send mail to pgp-bugs@ifi.uio.no,  so I can
  221. correct the problem.
  222.  
  223. If  you  have any problems, bugs, patches,  etc.,  please  send mail  to
  224. pgp-bugs@ifi.uio.no.
  225.  
  226. If all goes well, you will end up with an executable file called "pgp".
  227.  
  228. Before you install pgp, run these tests:
  229. (do not create your real public key yet, this is just for testing pgp)
  230.  
  231.  - create a public/secret key pair (enter "test" as userid/password):
  232.         pgp -kg
  233.  
  234.  - add the keys from the file "keys.asc" to the public keyring:
  235.         pgp -ka keys.asc
  236.    pgp will ask if you want to  sign the keys you are adding, answer yes
  237.    for at least one key.
  238.  
  239.  - do a keyring check:
  240.         pgp -kc
  241.  
  242.  - encrypt pgpdoc1.txt:
  243.         pgp -e pgpdoc1.txt test -o testfile.pgp
  244.  
  245.  - decrypt this file:
  246.         pgp testfile.pgp
  247.  
  248. This  should  produce  the  file  "testfile".  Compare  this  file  with
  249. pgpdoc1.txt
  250.  
  251. If everything went well, install pgp in a bin directory.
  252.  
  253. Place the documentation, pgpdoc1.txt and pgpdoc2.txt somewhere where you
  254. can  reasonably  read  it.   The  software  looks  for it  when  running
  255. (especially generating  keys), so someplace reasonably obvious would  be
  256. good.   "pgp  -kg"  will give  you full details  if  it  can't  find the
  257. manuals.
  258.  
  259. Place  the man page (pgp.1) in  an appropriate spot.  If  you don't know
  260. anything about how man pages work, you can  make the man page look human
  261. readable  yourself by typing  "nroff  -man pgp.1  >pgp.man" and  reading
  262. "pgp.man".
  263.  
  264. Create a subdirectory somewhere in your home directory hierarchy to hold
  265. your public and private key rings and anything else pgp might need (like
  266. the language.txt file).  The default name PGP assumes is ~/.pgp.  If you
  267. want  to  use a  different  name, you must set  the environment variable
  268. "PGPPATH" to point to this place before you use the system.
  269.  
  270. > IMPORTANT: This directory cannot be shared!  It will contain your <
  271. > personal private keys!                                            <
  272.  
  273. If you are installing PGP for yourself,  copy the  files "language.txt",
  274. "config.txt", and  the  ".hlp"  files  from  the  distribution into this
  275. subdirectory.
  276.  
  277. If  you  are  installing  PGP  system-wide,  the  directory  to  use  is
  278. /usr/local/lib/pgp for the config, language and help files.  This can be
  279. changed in fileio.h when compiling.  It's the value of PGP_SYSTEM_DIR.
  280.  
  281. Tell  PGP  the  character set  and  language  you  wish  to use  in  the
  282. config.txt file.  If you have a terminal that only displays 7-bit ASCII,
  283. use "charset=ascii" to display an approximation (accents are omitted) of
  284. extended characters.
  285.  
  286. >> IMPORTANT: Please read the sections in the man page and manual  <<
  287. >> about vulnerabilities before using this software on a multi-    <<
  288. >> user machine!                                                   <<
  289.  
  290. Now, if you haven't done so yet, GO READ THE MANUAL.
  291.  
  292. ########################################################################
  293. For VMS:
  294.  
  295. Usage is generally:
  296.   1) Unzip your PGP 2.6.2i sources in [.PGP] using the -aa option
  297.   2) Set default to [.PGP.SRC]
  298.   3) Type @PGPINSTAL and answer the questions
  299.  
  300. See the file [.pgp.src]pgpinstal.com for more detailed information.
  301.  
  302. For proper  operation,  the logical name  PGPPATH  *must*  be defined to
  303. point to  a directory  containing the  PGP  help files,  language files,
  304. your keyrings (keyrings get created automatically), and your CONFIG.TXT.
  305. Refer to  the  PGP  documentation for  information  on  how the  PGPPATH
  306. "environment variable" is used.
  307.