home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / MODEM / OZPKE12A.ZIP / OZPKE.DOC < prev    next >
Text File  |  1994-01-12  |  54KB  |  1,199 lines

  1.             ╔═════════════════════════════════════════╗
  2.             ║   OzCIS Public Key Encryption utility   ║
  3.             ║                 OzPKE                   ║
  4.             ║      Copyright 1993 by Donald Moe       ║
  5.             ║            CIS:72407,1054               ║
  6.             ╚═════════════════════════════════════════╝
  7.  
  8.                                              12 January 1994
  9.                                              OzPKE Version 1.2
  10.  
  11. Synopsis:
  12. ---------
  13.  
  14. This utility program, OzPKE, works in conjunction with Steve Sneed's
  15. automated CompuServe access program OzCIS (v2.0a) and ViaCrypt PGP
  16. program (v2.4) to assure secure communications via electronic mail. 
  17.  
  18. Note to current users: Previous releases of the program consisted of two
  19. modules that have now been combined into one. This requires a change in
  20. the decryption command in "Externals Menu" (see below).
  21.  
  22. The goal is to simplify public key encryption of outgoing and decryption
  23. of incoming messages and files passing through the CompuServe Information
  24. System. Both direct electronic mail and forum messages as well as file
  25. attachments are supported.  OzPKE handles encryption of outgoing messages
  26. and files as well as decryption of incoming messages and received files.
  27.  
  28. Although the user could use whatever public-key encryption software he
  29. chooses, provided it supports command-line operation, the recommended
  30. program is ViaCrypt PGP system since OzPKE makes use of PGP's public 
  31. keyring file and specific features of that program. 
  32.  
  33. Refer to documentation for PGP for a thorough discussion of message
  34. and file encryption and decryption.
  35.  
  36.  
  37. Legal Issues:
  38. -------------
  39.  
  40. OzPKE is (c) Copyright Donald Moe, 1993. 
  41.  
  42. OzPKE are made available for personal use at no charge by the author.
  43. Commercial users are required to contact the author to license use of the
  44. software after a trial period of 14 days.
  45.  
  46. The author assumes no liability for damages resulting from the use of this
  47. software, even if the damage results from defects in this software, and
  48. makes no representations concerning the merchantibility of this software
  49. or its suitability for any specific purpose. It is provided "as is"
  50. without express or implied warranty of any kind.
  51.  
  52.  
  53. Quick Start:
  54. ------------
  55.  
  56. To install and start using OzPKE quickly, perform the following steps.
  57.  
  58. 1) Install and configure PGP according to its instructions.
  59.  
  60. 2) Install a file viewing program, such as Vernon Buerg's LIST.COM.
  61.  
  62. 3) Copy OzPKE.EXE and OzPKE.CFG into the directory where OZCIS.EXE is 
  63.    located.
  64.  
  65. 4) Edit OZPKE.CFG to conform with your system. (See Configuration file
  66.    below.)
  67.  
  68. 5) Enter macro definitions under menu entry "Configuration/Kbd Macros"
  69.    (See Macros below) or copy the supplied KBD.MAC file to the OzCIS
  70.    directory.
  71.  
  72. 6) Add three external program definitions under "Tool/External Menu".
  73.    (See External Menu below.)
  74.  
  75. The following steps assume that the corresponding macro definitions have
  76. been entered with the same control keys.
  77.  
  78. To send messages:
  79.  
  80. 1) Compose each message as if it were to be sent as a normal plain-text
  81.    message.
  82.  
  83. 2) Place cursor on any blank line within the message or at end and press ^P
  84.    and/or ^S to insert the trigger phrases for private and/or signature on
  85.    separate lines.
  86.  
  87. 3) Store the message for sending (Alt-S). Enter addressee and subject as
  88.    normal.
  89.  
  90. 4) Prior to the on-line session, press Ctrl-E to perform encryption on
  91.    all outgoing messages.
  92.  
  93. 5) When a window appears with names of recipients, select proper addressee
  94.    from the list and press return. If addressee is not found, press Esc to
  95.    cancel, the message will remain unencrypted in the outgoing message file.
  96.  
  97. 6) Log onto CompuServe as normal. Encrypted messages will be sent along
  98.    with any plain-text messages without further user intervention.
  99.  
  100.  
  101. To send a message with an attached file:
  102.  
  103. 1) Perform steps 1 and 2 the under previous section, "To send messages".
  104.  
  105. 2) With Alt-T request a file attachment and enter the name of the file to
  106.    be sent. Set "Upload as ASCII" to "Y" for a file that should be sent as
  107.    an ASCII-armored file. If set to "N", the file will be uploaded as a
  108.    normal binary file and cannot be sent through the Internet gateway.
  109.  
  110. 3) Continue with "Step 3" above.
  111.  
  112.  
  113. To view an encrypted message or decrypt an encrypted file:
  114.  
  115. 1) An encrypted message can be recognized by the header text at the start
  116.    of the message:
  117.       -----BEGIN PGP MESSAGE-----
  118.    or
  119.       -----BEGIN PGP SIGNED MESSAGE-----
  120.  
  121. 2) While this message is in the OzCIS reader, press Ctrl-D to decrypt and
  122.    display the corresponding plain-text message. If the "Subj:" line 
  123.    contains the word "Upload:", the message will be processed as an ASCII
  124.    encoded binary file and will be stored in the directory specified by
  125.    ASCDEC in the configuration file.
  126.  
  127. 3) After reading decoded message, press Esc to return to OzCIS mail
  128.    reader.
  129.  
  130.  
  131. To force decryption of newly received encrypted file when the automatic
  132. recognition failed. This may be needed when encrypted ASCII files are
  133. received from Internet users or those using software other than OzCIS.
  134.  
  135. 1) An encrypted file can not be destinguished from a normally encrypted
  136.    message:
  137.       -----BEGIN PGP MESSAGE-----
  138.    or
  139.       -----BEGIN PGP SIGNED MESSAGE-----
  140.  
  141. 2) While this message is in the OzCIS reader, press Ctrl-F to force 
  142.    decryption of the message as an ASCII encoded file.
  143.  
  144. 3) The resulting file will reside in the directory specified by the
  145.    parameter ASCDEC in OzPKE.CFG.
  146.  
  147.  
  148. To add a new public key to PGP's PUBRING.PGP:
  149.  
  150. 1) In message reader, display message containing public key block with the
  151.    header text:
  152.       -----BEGIN PGP PUBLIC KEY BLOCK-----
  153.  
  154. 2) Press Ctrl-X to have PGP process the public key block and add the new
  155.    key to your public key ring.
  156.  
  157.  
  158. Alternatively, if public key block has been reformatted by CompuServe's
  159. forum software, so that the data block is incorrect, such as:
  160.  
  161.    -----BEGIN PGP PUBLIC KEY BLOCK----- Version: 2.4
  162.  
  163.    mQBNAixXGf0AAAECAMRsXjUbf8fHvaR2+LHq2ZtgyvCtIXlhjmBP0+96ep8sX3o7
  164.    TCdBchTGuxcnVnYr9kye57sAV4eumFGdB8hhx6UABRG0KURvbmFsZCBLLiBNb2Ug
  165.    PDcyNDA3LjEwNTRAY29tcHVzZXJ2ZS5jb20+ =eNRX -----END PGP 
  166.    PUBLIC KEY BLOCK-----
  167.  
  168. Use the following procedure to add a new public key to PGP's PUBRING.PGP:
  169.  
  170. 1) In message reader, display message containing public key block with the
  171.    header text:
  172.       -----BEGIN PGP PUBLIC KEY BLOCK-----
  173.  
  174. 2) Mark the entire block including entire end-block text by positioning
  175.    cursor at start, press Ctrl-KB, move to end and press Ctrl-KK.
  176.  
  177. 3) Press Ctrl-C to copy this marked block into OzCIS's general editor.
  178.  
  179. 4) Correct formatting so that the data block appears like this (but not
  180.    indented):
  181.  
  182.    -----BEGIN PGP PUBLIC KEY BLOCK----- 
  183.    Version: 2.4
  184.  
  185.    mQBNAixXGf0AAAECAMRsXjUbf8fHvaR2+LHq2ZtgyvCtIXlhjmBP0+96ep8sX3o7
  186.    TCdBchTGuxcnVnYr9kye57sAV4eumFGdB8hhx6UABRG0KURvbmFsZCBLLiBNb2Ug
  187.    PDcyNDA3LjEwNTRAY29tcHVzZXJ2ZS5jb20+
  188.    =eNRX 
  189.    -----END PGP PUBLIC KEY BLOCK-----
  190.  
  191. 4) Press Ctrl-W to let PGP process the corrected public key block.
  192.  
  193.  
  194. Operation:
  195. ----------
  196.  
  197. For outgoing traffic each message in the OzCIS ".REP" files is scanned for
  198. the trigger keywords.  If the ##SIGNATURE## trigger is found on a separate
  199. line in the message text, a public-key encryption (PKE) tool is used to
  200. apply a digital signature to the message.  If the ##PRIVATE## trigger is
  201. found in the message text, the PKE program is used to scramble the text of
  202. the message.  If both triggers are found, both operations are performed in
  203. a single step. The trigger words, including the enclosing ## characters,
  204. must each appear left-justified on a separate line and be spelled exactly
  205. (all upper case, no spaces, etc.) in order to be recognized. Macros can be
  206. used to facilitate entering these trigger words.
  207.  
  208. The encrypted message replaces the plain-text message in the outgoing
  209. message file and can no longer be read, unless the command flag was
  210. enabled to save the messages to the associated outbox file (See OUTBOX
  211. below). 
  212.  
  213. Alternatively, the command UPLASCII can be set to Yes in OzPKE.CFG so that
  214. the encrypted message is not stored in the outgoing message file. Rather
  215. OzPKE causes OzCIS to upload the message with protocol to CompuServe MAIL
  216. as an ASCII file. The ASCII file generated by PGP will be stored in the
  217. path specified by UPLPATH with a filename based on the current date and
  218. sequential number.  This feature was added to combat corruption of the
  219. ASCII block during transmission to CompuServe. This capability is not
  220. available for forum messages.
  221.  
  222. Additionally, OzPKE can handle a file attached to a message. If the main
  223. message with the attached file is marked for encryption, the attached file
  224. is also encrypted, either as a binary or an ASCII-armored file depending
  225. on whether "Upload as ASCII" is answered with "N" or "Y", when the
  226. attachment is specified.  Both the main message as well as the attached
  227. file are encrypted. The attached file does not need to be compressed
  228. beforehand since PGP automatically performs that step. For example, it
  229. thus becomes extremely easy to securely transmit a spreadsheet data file,
  230. even over the Internet gateway. The attached files can be sent with the
  231. same level of security as the main message, except that Signature Only is
  232. not available. Separate directories can be specified for the ASCII and
  233. binary file uploads. 
  234.  
  235. Warning: the resulting ASCII-armored attached files can become very
  236. lengthy and possibly exceed the message length limit to Internet
  237. recipients. PGP can accommodate this problem with the setting
  238. "ARMORLINES=" in its configuration file, CONFIG.TXT. If this setting is
  239. non-zero, PGP will automatically split lengthier message files into chunks
  240. and sequentially number them starting with the extension AS1 or A01. A
  241. setting of 220 lines results in message chunks of approximately 15KB
  242. length. The current version of OzPKE is not yet capable of coping with
  243. this situation but a fix is under development.
  244.  
  245. For incoming traffic, the user activates the decoding process when
  246. he sees an encoded message on the screen of the message viewer. The
  247. message will be decoded into a temporary file, preferably on a RAM disk,
  248. and can then be read using a common viewer program, such as Vernon Buerg's
  249. LIST.COM (not supplied). After being viewed, the temporary file is
  250. deleted.  The OzCIS message file retains the encoded text block. (A later
  251. version may allow the decoded message to be appended to the associated
  252. message file.)
  253.  
  254. OzPKE also handles decryption of received files that have been encrypted
  255. as ASCII or binary files. See "Decrypting Encrypted Files" below.
  256.  
  257. In OzCIS, macros can be defined to perform multiple operations. Several are
  258. used to simplify OzPKE operation. (See macro definitions.)
  259.  
  260. OzPKE runs via the DOS gateway of OzCIS, which leaves a very small
  261. footprint in memory during the gateway. When OzPKE activates PGP, it
  262. likewise swaps out to EMS, XMS or disk, thus leaving a similarly small
  263. footprint in memory. For OzPKE to have any EMS or XMS available, set the
  264. parameter for OzCIS' protected mode to a value less than maximum available
  265. memory, example "SET DPMIMEM=MAXMEM 4096".
  266.  
  267. Each message in each specified .REP file is scanned for the presence of
  268. trigger words on lines by themselves, which produce the following effects:
  269.  
  270.    ##SIGNATURE##   Create a digital signature for this message.
  271.  
  272.    ##PRIVATE##     Encrypt this message, using the recipient's public key.
  273.  
  274. Any message containing these trigger words will have the appropriate OzPKE
  275. magic done to it, and when OzPKE is finished, all processed .REP files
  276. will contain the signed/encrypted forms of those messages that were
  277. flagged for signature or encryption, plus the originals of messages that
  278. didn't need a signature or encryption or that could not be encrypted since
  279. the recipient's public key was not available.
  280.  
  281. When encryption is to be performed on a message, OzPKE will first attempt
  282. to locate the recipient's CompuServe or Internet Email address in the 
  283. public key ring file. If an exact match is found, the message is 
  284. automatically processed. Otherwise OzPKE will display a pop-up pick list
  285. in which the nearest match to the recipient's name is highlighted. The
  286. user must select and/or confirm the proper recipient using the up/down
  287. arrow keys and press return. If no matching recipient is available,
  288. pressing Esc will cancel the encryption on that message, to continue with
  289. the next one. The cancelled message will remain in the outgoing message
  290. file so that the user can change, hold, or delete it within OzCIS. 
  291.  
  292. The technique for properly matching Email addresses to those in PUBRING
  293. assumes that the entries in PUBRING conform to the format recommended in
  294. the PGP documentation, such as:
  295.  
  296. for CompuServe addressees:
  297.    <72407.1054@compuserve.com> 
  298. or 
  299.    <72407,1054@compuserve.com>
  300. is also recognized,
  301.  
  302. or for Internet addressees:
  303.    <xyz@some.place.com>
  304.  
  305. The enclosing characters "<" and ">" are required to assure that a partial
  306. match does not result in an incorrect recipient being selected.  If no
  307. match is detected, the pick list will appear as before. Case is
  308. irrelevant.
  309.  
  310. The addresses of the outgoing messages should conform to the usual
  311. CompuServe formatting, for example:
  312.  
  313.       First Last 70000,0000
  314.    or
  315.       Name INTERNET:name@some.where.com
  316.  
  317. When OzPKE is done, OzCIS resumes operation at the same place it was
  318. interrupted. The messages files can be sent normally at the next logon
  319. session.
  320.  
  321. By default OzPKE makes a "backup" of your original .REP file by renaming
  322. the original file to *.BAK.  If no backup file is desired, set the BAK
  323. parameter in the configuration file to N.
  324.  
  325. As OzPKE is merely an interface program to PGP, the messages output by PGP
  326. are still displayed on the screen and should be read in case of possible
  327. error conditions. OzPKE will evaluate any error code returned by PGP and
  328. display any non-zero code with a brief error message. The message box will
  329. indicate whether the encryption or decryption section of the program is
  330. reporting the error.
  331.  
  332.  
  333. Command Inputs:
  334. ---------------
  335.  
  336. If no parameter is provided on the command line to OzPKE, a copyright
  337. notice and brief description are displayed. A dummy parameter, X, is
  338. required in the programs' definitions in OzCIS' External Menu for proper
  339. operation of OzPKE. For decryption, a "-d x" is required on the command
  340. line.  (All command line switches to OzPKE can be in the form "-d", "-D",
  341. "/d" or "/D", as all of these forms are equally acceptable.)
  342.  
  343. If the password to PGP's secret ring file has not been specified in
  344. OZPKE.CFG, it should be passed on the command line. This is accomplished
  345. by defining the command under Externals Menu (see below) as shown in the
  346. second alternative.  Each time OzPKE is activated, OzCIS will prompt for
  347. the command line parameter. Enter just the password phrase.  Leading and
  348. trailing blank space will be removed. Unfortunately there is no way to
  349. suppress the echo in OzCIS' parameter input line, therefore caution is
  350. advised in the presence of others.
  351.  
  352. The password string is temporarily inserted into the current environment
  353. buffer with the environment variable PGPPASS. This works fine with PGP but
  354. possibly not with other PKE programs. Thus multiple messages can be
  355. processed without requiring the user to reenter the password for each one.
  356. After completion, the password string is removed from the environment
  357. buffer. If the environment size is insufficient to accommodate the password
  358. string, a temporary environment with the minimum required entries will be
  359. used.
  360.  
  361. The values used in OZPKE.CFG for SIGO, PRIV, SIGP, BINSIG, BINPRV, DECODE
  362. and FILEDECODE naturally depend on which public-key encryption program is
  363. selected by the user, as configured in OZPKE.CFG. If something other than
  364. PGP was chosen, then the user is on his own to figure out what kind of
  365. command-line parameters are required to achieve these desired results. It
  366. may be necessary to create a .BAT file or other "wrapper" to accomplish
  367. this.
  368.  
  369. If a program other than PGP is chosen, the main things to consider are that
  370.  1) the plain-text message is written to "MAIL.IN" in the temporary
  371.     directory for the PKE program to use as input,
  372.  2) the encoded output from the PKE program has to be left in a file
  373.     called "MAIL.PGP" because that's where OZPKE expects to find it, and 
  374.  3) any signature blocks or ciphertext emitted by the alternative PKE
  375.     program must be "armored," or encoded as e-mailable ASCII characters,
  376.     similar to the RADIX-64 format used by PGP.
  377.  
  378. The default options achieve this with PGP. Both "MAIL.PGP" and "MAIL.IN"
  379. are workfiles, and are deleted after OzPKE has completed its work.
  380.  
  381. When the encoded ASCII messages are to be uploaded using protocol by
  382. OzCIS, the file MAIL.PGP is not used for temporary storage, rather the
  383. encoded messages are stored under sequentially numbered filenames based on
  384. the date.
  385.  
  386. OzCIS supports a two optional settings in OZCIS.INI for pre- and post-
  387. processing of messages: ReadPreProcess and CompPostProcess.
  388.  
  389. If "ReadPostProcess=\ozcis\ozpke -d x", OzCIS will inquire whether the
  390. message file should be processed. Unfortunately this is not compatible
  391. with the way OzPKE was designed to decrypt, whereby the encrypted messages
  392. should be retained in secure form and only decoded on an individual basis
  393. as required. However, if any users are not concerned about this aspect and
  394. would prefer to have all messages decoded in a batch process and only
  395. stored as plain-text, they should express this desire to the author of
  396. OzPKE and this operation may be implemented in a future version.
  397.  
  398. If "CompPostProcess=\ozcis\ozpke x", OzCIS will inquire whether the
  399. message just written should be processed. This works just fine on a 
  400. message-by-message basis and reminds the user to process each message, as
  401. intended, but the capability of OzPKE to process multiple outgoing
  402. messages in one pass can no longer be used to full advantage. Furthermore,
  403. if messages are sometimes modified after being initially written but
  404. prior to transmission, this is difficult if each message is encrypted
  405. immediately after being written. For these reasons, the author prefers not
  406. to set "CompPostProcess" and instead presses ^E just prior to the online
  407. session. If a message is addressed to a recipient whose public key is not
  408. available, this message can then be modified or killed prior to
  409. transmission.
  410.  
  411.  
  412. WARNING:
  413. --------
  414.  
  415. Starting with OzPKE 1.1, the configuration file contains the parameter
  416. WIPE, which will cause the work and message files containing plain-text to
  417. be overwritten with the byte 0xFF and also filled to the next cluster
  418. boundary. The operation is performed after all other operations have been
  419. completed. The files affected by OzPKE are MAIL.IN, CISMAIL.REP, and
  420. OZPKE.SWP, and MAIL.TXT and OZPKD.SWP when decrypting.
  421.  
  422. If the WIPE parameter is left to default setting of "No", then OZPKE does
  423. not overwrite the MAIL.IN file containing the plaintext of the last
  424. message encrypted. It merely deletes the file from the directory. You can
  425. set a PGP option to overwrite or "wipe" this file if you like. See the PGP
  426. documentation for details. However, if this is done, the original
  427. plain-text messages cannot then be copied to the associated outbox files
  428. since this step is only performed after the message has been successfully
  429. encrypted. Hence it is better to set WIPE=Yes if the file should be wiped.
  430.  
  431. During processing, the new outgoing .REP file has the temporary extension
  432. ".R$P" until the operation has been completed. The original, unencrypted
  433. ".REP" file is renamed to ".BAK" and the ".R$P" is renamed to ".REP". The
  434. BACKUP command in OZPKE.CFG determines whether backups of the files are to
  435. be made. 
  436.  
  437. Even if the original .REP files are deleted, traces of them may still be
  438. accessible on the disk and therefore could be recovered by those with
  439. adequate skills, unless the WIPE parameter is set to "Yes".
  440.  
  441.  
  442. File Inputs:
  443. ------------
  444.  
  445. 1) OzPKE first accesses its configuration file, OZPKE.CFG, which must be
  446.    located in the same directory where OzPKE resides.
  447.  
  448. 2) OzPKE automatically accesses several OzCIS (v2.0a) configuration files
  449.    to determine the locations of the necessary message files:
  450.  
  451.    a) HOSTS.DB    contains path to forum directory for currently active
  452.                   CompuServe host node.
  453.  
  454.    b) FORUMS.DB   contains names of the active fora and paths to their
  455.                   message files.
  456.  
  457. 3) OzPKE also accesses PUBRING.PGP, the file containing all known public
  458.    keys of possible correspondents. The names are extracted and stored for
  459.    quick access in OZPKE.STM. Updates to PUBRING.PGP are detected so that
  460.    OZPKE.STM is likewise updated. Since the internal file structure of
  461.    PUBRING.PGP is not available, PGP is called with the command "-kv *
  462.    pubring" with output redirected to a temporary file, from which OzPKE
  463.    then extracts the required information. This procedure may change in
  464.    future versions.
  465.    
  466. 4) OzCIS CISMAIL.REP and possibly the active forum *.REP files, as
  467.    specified in the configuration file.
  468.  
  469.  
  470. File Outputs:
  471. -------------
  472.  
  473. OzCIS *.REP files, with messages signed and encrypted as directed.
  474.  
  475. If UPLASCII is set to Yes in OzPKE.CFG, PGP will encrypt into an ASCII
  476. file in the directory specified by UPLPATH using filenames based on
  477. current date and sequentially numbered extensions, e.g. AS931118.000. A
  478. maximum of 1000 encrypted messages can thus be sent per day. These files
  479. will be attached to an ASCII upload message header in CISMAIL.REP for
  480. automatic uploading by OzCIS, but will not be automatically deleted after
  481. sending. This housekeeping is currently left to the user to perform.
  482. (Suggestions from users on how to automate this step would be welcomed.)
  483.  
  484. Any files attached to messages that are encrypted will also be assigned a
  485. name according the same scheme, e.g. AS931118.001 or BN931118.001,
  486. depending on whether the attached file is ASCII or binary. The originally
  487. attached files are not deleted nor wiped.
  488.  
  489.  
  490. Work Files:
  491. -----------
  492.  
  493. Up to four temporary work files are created as OZPKE runs. 
  494.  
  495. In the temporary directory, normally on a RAM disk:
  496.  
  497.  MAIL.IN       contains the plaintext of the message currently being 
  498.                processed.
  499.  
  500.  MAIL.PGP      the encrypted/signed version of the message as output by
  501.                PGP, except when uploading messages as ASCII files.
  502.  
  503.  MAIL.M$G      will be created if a message needs repair and then renamed
  504.                to MAIL.PGP.
  505.  
  506. In the OzCIS mail and forum directories:
  507.  
  508.  CISMAIL.R$P   file containing outgoing messages or upload control blocks
  509.  <forum>.R$P   after processing by PGP.
  510.  
  511. The MAIL.IN file's maximum size is the length of your longest message, not
  512. including headers and control information. 
  513.  
  514. The MAIL.PGP file's maximum size may be somewhat larger than MAIL.IN,
  515. since an encrypted message may be bigger than its plaintext form and
  516. signed messages contain extra lines for the signature block, but it's
  517. still about as large as the longest individual message.  
  518.  
  519. The CISMAIL.R$P and <forum>.R$P files are replacements for the input .REP
  520. file, so they will be about the same size or a bit larger than the
  521. original .REP file. Therefore adequate space should be available on the
  522. OZCIS disk to accommodate the necessary files.
  523.  
  524. All work and swap files are deleted when OZPKE is finished, but not
  525. overwritten unless the parameter WIPE is set to "Yes" in OzPKE.CFG.
  526.  
  527. As OzPKE performs a DOS gateway, it needs to have adequate disk storage
  528. available for the swap files, if insufficient EMS or XMS memory is
  529. available. The file size is approximately 170KB.
  530.  
  531.  
  532. Receiving Encrypted/Signed Messages:
  533. ------------------------------------
  534.  
  535. With "-d x" on the command line, OzPKE controls the decryption process for
  536. messages, verification of signatures and/or adding of new public keys to
  537. the public key ring. For this to work properly, the message must be
  538. exported to the file MAIL.PGP in the same temporary directory as for
  539. OzPKE.  This export operation is performed by a macro.  
  540.  
  541. After PGP completes the decryption, the resulting plain-text output file
  542. will be displayed by a file viewing program, such as Vernon Buerg's
  543. LIST.COM, or any ASCII text editor.  After viewing, the intermediate
  544. plain-text file can be wiped as well as deleted if WIPE=Y in OzPKE.CFG. 
  545. However, if the parameter KEEP in OzPKE.CFG is set to Y, the plain-text
  546. file is retained to allow the user to then import it into the OzCIS reply
  547. editor to allow quoting. A suitable macro may be used to facilitate this
  548. operation.  (See definition for ^R under Macros and user suggestion at end
  549. of documentation.) If the file should be wiped after quoting, the ^R macro
  550. should be modified to activate a suitable batch file, which could call a
  551. program such as Norton's WIPEINFO.
  552.  
  553. Alternatively, the decrypted plain-text message can be appended to the
  554. file CISMAIL.MSG for storage, as determined by parameter APPEND in the 
  555. configuration file. The header of the original message is extracted from 
  556. MAIL.PGP and used for the new entry in CISMAIL.MSG. In such cases, the
  557. file viewer, LIST.COM, is not activated. NOTE: Unfortunately this function
  558. does not yet work correctly since OzCIS does not reload CISMAIL.MSG after
  559. doing a gateway to DOS, hence it then overwrites the message file from
  560. it's internal buffer. When a new release of OzCIS appears, this limitation
  561. will hopefully be lifted.
  562.  
  563. Apparently text messages sent to CISMAIL occasionally suffer from minor
  564. corruption, typically an extra blank at the start of a line around line
  565. 10. Although this can now be overcome by uploading the messages as ASCII
  566. files, other users may not send their messages this way, so that you may
  567. have to correct this problem. PGP will report the error and refuse to 
  568. decode messages with such corruption, albeit minor. In this case, PGP
  569. returns errorlevel 1 (Invalid File). 
  570.  
  571. A similar problem occurs when the PGP block has been indented. In this
  572. case, PGP returns errorlevel 3 (Unknown File). 
  573.  
  574. In both of these cases, OzPKE will automatically attempt to correct the
  575. problem by copying the file, removing leading blanks from lines within
  576. each PGP block in the file and also discarding extraneous text outside the
  577. PGP blocks. PGP is then called for a second attempt.  If the repair
  578. procedure succeeded, PGP will properly decode the ASCII message. During
  579. this process may PGP may beep and display an error message.
  580.  
  581. If the repair effort was not successful, possibly due to additional
  582. formatting errors within the PGP block, use the ^KB and ^KK commands to
  583. mark the PGP message block in the message viewer. Copy this block to the
  584. MAIL.PGP file in the temporary directory specified in OzPKE.CFG, such as
  585. with the macro defined for ^C (see macro definitions), which copies the
  586. block into the OzCIS general editor. Edit the file MAIL.PGP to correct the
  587. formatting errors, press F2 to save it and then Esc to leave the editor.
  588. Now press ^D again.  OzCIS will again export the message to MAIL.PGP,
  589. appending the new text to the existing file, and then activate OzPKE.
  590.  
  591. Since PGP will process multiple messages within an input file, it will
  592. still report the error in the first message, but will then successfully
  593. process the second, corrected one. Due to the automatic recovery process,
  594. just described, OzPKE will still try to repair the defective file and
  595. activate PGP. This may result in several beeps and error messages until
  596. PGP successfully processes the non-corrupted message in the file.
  597.  
  598.  
  599. Decrypting Encrypted Files:
  600. ---------------------------
  601.  
  602. OzPKE also handles decryption of received encrypted ASCII or binary files.
  603. Two directories may be specified to receive the ASCII or binary files
  604. following decryption. Attempts to decrypt non-encrypted files yield an
  605. appropriate error message. The decrypted file is automatically named with
  606. the original filename by PGP.  When PGP attempts to create the decrypted
  607. file, it checks whether an existing file may already exist and in that
  608. case asks the user whether the file should be overwritten. If the answer
  609. is No, the default, PGP prompts for an alternative filename.  After
  610. completion the user is alerted in a message box to the name of the
  611. resulting file and directory. 
  612.  
  613. If the incoming message is an ASCII file, OzPKE recognizes it as such when
  614. the subject line consists of the phrase "Subj:  Upload:". If the message
  615. points to a downloaded binary file, the phrase "% Message is Binary"
  616. causes OzPKE to handle the file appropriately.
  617.  
  618. If the incoming ASCII file does not have a recognized "Subj" line, OzPKE
  619. will process the file as a readable text file. If that is incorrect, press
  620. Ctrl-F instead of Ctrl-D to force OzPKE to process the message as an ASCII
  621. encrypted file. (See macro definitions below.) This procedure will probably
  622. be needed for files received from Internet correspondents or those using
  623. software other than OzCIS.
  624.  
  625. For alternative PKE programs, the parameter FILEDECODE needs to be set
  626. appropriately in OZPKE.CFG.
  627.  
  628.  
  629. Software Requirements:
  630. ----------------------
  631.  
  632. OzPKE was tested with MS-DOS 5.0, OzCIS 2.0b/c, ViaCrypt-PGP 2.4 and PGP 
  633. 2.3a on 486/33 and 386/33 computers with QEMM 6.02 installed and Lantastic 
  634. 5.0 loaded.  It may well work with earlier or later versions of those 
  635. related products, but the author doesn't know that for a fact. If anomalies 
  636. are observed when using other computer configurations, please report them to 
  637. the author at his CIS address 72407,1054. Files are opened in the 
  638. appropriate Share mode as appropriate, so that operation in a network 
  639. environment should present no difficulties. 
  640.  
  641. Since OzPKE operates by invoking your PKE software, you must have your 
  642. chosen PKE package installed and working properly before OzPKE can function.
  643.  
  644.  
  645. Forum limitations:
  646. ------------------
  647.  
  648. Although it is technically possible to post encrypted messages in a public 
  649. forum on CompuServe, this activity is frequently discouraged or outright 
  650. forbidden, including signatures on plain-text messages. Two general 
  651. principles should be obeyed in this regard:
  652.  
  653.  1. Don't post an encrypted message in any forum that has disabled the
  654.     "private message" feature.  If they wanted you to have private
  655.     side-conversations, they'd enable the forum feature that supports
  656.     them.
  657.  
  658.  2. Don't use signatures in public messages unless you see that they're in
  659.     common use in that particular forum.  In some forums, the sysops and
  660.     most of the users regard the extra six or seven lines of hash as a
  661.     waste of time--they're not generally going to bother with validating
  662.     signatures anyway, and they don't want to pay to download the extra
  663.     text. If in doubt, ASK the sysop.
  664.  
  665. Therefore, by default OzPKE ignores forum message files.
  666.  
  667.  
  668. Macros:
  669. -------
  670.  
  671. The following macros are recommended for smooth operation of OzPKE and
  672. must be carefully entered into OzCIS's macro editor (Configuration/Kbd
  673. Macros) or just use the version supplied in the distribution file. Adjust 
  674. the path to MAIL.PGP within the macros as appropriate.
  675.  
  676. Other activation keys may certainly be used instead of the following
  677. control-key combinations, if desired, but beware of conflicts with normal
  678. keyboard commands. ^ signifies a Ctrl-key combination.
  679.  
  680. Insert signature trigger: ^S 
  681.    <Home><Enter>##SIGNATURE##<Enter>
  682.  
  683. Insert private trigger: ^P 
  684.    <Home><Enter>##PRIVATE##<Enter>
  685.  
  686. Decrypt currently displayed message: ^D 
  687.    <AltM>vtG:\TEMP\MAIL.PGP<Enter><Alt1><Down><Enter>
  688.  
  689. Force decryption of currently 
  690. displayed message as ASCII file: ^F 
  691.    <AltM>vtG:\TEMP\MAIL.PGP<Enter><Alt1><Down><Down><Down><Down><Down><Enter>
  692.  
  693. Encrypt outgoing messages in CISMAIL and active forum message files: ^E 
  694.    <Alt1><Down><Down><Enter>
  695.  
  696. Add key to PUBRING.PGP: ^X      (use when text block not mangled)
  697.    <AltM>vtG:\TEMP\MAIL.PGP<Enter><Alt1><Down><Down><Down><Enter>
  698.  
  699. Add mangled key to PUBRING.PGP: ^W   (use when mangled text block has been
  700.                                       corrected in editor)
  701.    <Alt1><Down><Down><Down><Enter>
  702.  
  703. Copy marked block to general editor: ^C
  704.    <^J>c<AltO>gG:\TEMP\MAIL.PGP<Enter><^J>p<^K>h
  705.  
  706. Load decrypted message into Reply editor: ^R
  707.    <AltR><^K>rG:\TEMP\MAIL.TXT<Enter><^K>h
  708.  
  709. Delete MAIL.TXT in temporary directory: ^Z
  710.    <Alt1><Down><Down><Down><Down><Enter>
  711.  
  712. Note: Key codes within brackets <..>, such as <AltM>, are entered in
  713. OzCIS' macro editor by pressing the corresponding key combination. For
  714. <Enter> and <Down> press the Scroll-Lock key first.  (Refer to OzCIS
  715. documentation.)
  716.  
  717. Several macros contain <Down>, which refers to the cursor-down key. This
  718. must match with the associated commands in the External Menu. This is
  719. critical for proper operation of the programs!
  720.  
  721.  
  722. External Menu:
  723. --------------
  724.  
  725. Three external definitions must be entered in the External Menu and must
  726. be sorted into the top positions in this order. THIS IS CRITICAL! Change
  727. paths as appropriate.
  728.  
  729. 1)  DOS Gateway -- already defined.
  730.  
  731. 2)  Decrypt Received Mail Message:
  732.  
  733.        ╔════════════════ Externals Definition ════════════════════╗
  734.        ║ Title        Decrypt Received Mail Message               ║
  735.        ║ Command Line \ozcis\ozpke.exe -d x                       ║
  736.        ║ Use 2nd Cmd Processor? N     Pause after execution? N    ║
  737.        ║ Prompt for Params?     N                                 ║
  738.        ║                                                          ║
  739.        ║             F10-Ok ▄           Cancel ▄                  ║
  740.        ║             ▀▀▀▀▀▀▀▀           ▀▀▀▀▀▀▀▀                  ║
  741.        ╚══════════════════════════════════════════════════════════╝
  742.  
  743.     If no password to PGP's secret ring has been defined in OZPKE.CFG,
  744.     then change the Externals definition as follows:
  745.  
  746.        ╔════════════════ Externals Definition ════════════════════╗
  747.        ║ Title        Decrypt Received Mail Message               ║
  748.        ║ Command Line \ozcis\ozpke.exe -d -p                      ║
  749.        ║ Use 2nd Cmd Processor? N     Pause after execution? N    ║
  750.        ║ Prompt for Params?     Y                                 ║
  751.        ║                                                          ║
  752.        ║             F10-Ok ▄           Cancel ▄                  ║
  753.        ║             ▀▀▀▀▀▀▀▀           ▀▀▀▀▀▀▀▀                  ║
  754.        ╚══════════════════════════════════════════════════════════╝
  755.  
  756. 3)  Encrypt Outgoing Messages:
  757.  
  758.        ╔════════════════ Externals Definition ════════════════════╗
  759.        ║ Title        Encrypt Outgoing Mail Messages              ║
  760.        ║ Command Line \ozcis\ozpke.exe x                          ║
  761.        ║ Use 2nd Cmd Processor? N     Pause after execution? N    ║
  762.        ║ Prompt for Params?     N                                 ║
  763.        ║                                                          ║
  764.        ║             F10-Ok ▄           Cancel ▄                  ║
  765.        ║             ▀▀▀▀▀▀▀▀           ▀▀▀▀▀▀▀▀                  ║
  766.        ╚══════════════════════════════════════════════════════════╝
  767.  
  768.     If no password to PGP's secret ring has been defined in OZPKE.CFG,
  769.     then change the Externals definition as follows:
  770.  
  771.        ╔════════════════ Externals Definition ════════════════════╗
  772.        ║ Title        Encrypt Outgoing Mail Messages              ║
  773.        ║ Command Line \ozcis\ozpke.exe -p                         ║
  774.        ║ Use 2nd Cmd Processor? N     Pause after execution? N    ║
  775.        ║ Prompt for Params?     Y                                 ║
  776.        ║                                                          ║
  777.        ║             F10-Ok ▄           Cancel ▄                  ║
  778.        ║             ▀▀▀▀▀▀▀▀           ▀▀▀▀▀▀▀▀                  ║
  779.        ╚══════════════════════════════════════════════════════════╝
  780.  
  781. 4)  Update PGP Key File:  (change paths in NEWPUB.BAT as required)
  782.  
  783.        ╔════════════════ Externals Definition ════════════════════╗
  784.        ║ Title        Update PGP Key file                         ║
  785.        ║ Command Line \ozcis\newpub.bat                           ║
  786.        ║ Use 2nd Cmd Processor? Y     Pause after execution? Y    ║
  787.        ║ Prompt for Params?     N                                 ║
  788.        ║                                                          ║
  789.        ║             F10-Ok ▄           Cancel ▄                  ║
  790.        ║             ▀▀▀▀▀▀▀▀           ▀▀▀▀▀▀▀▀                  ║
  791.        ╚══════════════════════════════════════════════════════════╝
  792.  
  793.  
  794. 5)  Delete MAIL.TXT in temporary directory:
  795.  
  796.        ╔════════════════ Externals Definition ════════════════════╗
  797.        ║ Title        Delete MAIL.TXT                             ║
  798.        ║ Command Line del g:\temp\mail.txt                        ║
  799.        ║ Use 2nd Cmd Processor? Y     Pause after execution? N    ║
  800.        ║ Prompt for Params?     N                                 ║
  801.        ║                                                          ║
  802.        ║             F10-Ok ▄           Cancel ▄                  ║
  803.        ║             ▀▀▀▀▀▀▀▀           ▀▀▀▀▀▀▀▀                  ║
  804.        ╚══════════════════════════════════════════════════════════╝
  805.  
  806. 6)  Force Decrypt Received File:
  807.  
  808.        ╔════════════════ Externals Definition ════════════════════╗
  809.        ║ Title        Decrypt Received File                       ║
  810.        ║ Command Line \ozcis\ozpke.exe -d -f                      ║
  811.        ║ Use 2nd Cmd Processor? N     Pause after execution? N    ║
  812.        ║ Prompt for Params?     N                                 ║
  813.        ║                                                          ║
  814.        ║             F10-Ok ▄           Cancel ▄                  ║
  815.        ║             ▀▀▀▀▀▀▀▀           ▀▀▀▀▀▀▀▀                  ║
  816.        ╚══════════════════════════════════════════════════════════╝
  817.  
  818.     If no password to PGP's secret ring has been defined in OZPKE.CFG,
  819.     then change the Externals definition as follows:
  820.  
  821.        ╔════════════════ Externals Definition ════════════════════╗
  822.        ║ Title        Decrypt Received File                       ║
  823.        ║ Command Line \ozcis\ozpke.exe -d -f -p                   ║
  824.        ║ Use 2nd Cmd Processor? N     Pause after execution? N    ║
  825.        ║ Prompt for Params?     Y                                 ║
  826.        ║                                                          ║
  827.        ║             F10-Ok ▄           Cancel ▄                  ║
  828.        ║             ▀▀▀▀▀▀▀▀           ▀▀▀▀▀▀▀▀                  ║
  829.        ╚══════════════════════════════════════════════════════════╝
  830.  
  831. Batch file:
  832. -----------
  833.  
  834. Place the following batch file as named in the Externals Menu, step 4, into
  835. the OzCIS directory, e.g. NEWPUB.BAT:
  836.  
  837.    @echo off
  838.    rem This batch file adds new Public Key to PGP's PUBRING.PGP file.
  839.    rem Adapt paths as required.
  840.    rem
  841.    c:\pgp\pgp.exe -ka g:\temp\mail.pgp c:\pgp\pubring
  842.    del g:\temp\mail.pgp
  843.  
  844.  
  845.  
  846. Programming Notes:
  847. ------------------
  848.  
  849. OzPKE was developed using Borland Pascal version 7.0 in conjunction with
  850. the excellent Object Professional library from Turbo Power Software. At
  851. the present time, I have chosen not to include the source code to OzPKE in
  852. the distribution file, but will make it available for a small donation.
  853.  
  854. The idea for the program came from a similar program for TAPCIS users as
  855. developed by Bob Smart [72027,3210], which he called TAPPKE. I also wish
  856. to thank him for additional suggestions and contributions to this
  857. documentation.
  858.  
  859. Needless to say, this project would have not been necessary without the
  860. tireless efforts of Steve Sneed in first releasing version 2.0 of OzCIS
  861. and continuing to update it. My express thanks to him for this excellent
  862. program.
  863.  
  864. Of course, without the availability of such outstanding public-key 
  865. encryption software, like ViaCrypt PGP, this project would not have even 
  866. been conceived.
  867.  
  868. Please report problems or bugs in OzPKE to the author via Email to his
  869. CompuServe user number 72407,1054. Please include the version number of
  870. the program when it is called without parameters and describe the anomaly 
  871. as succinctly as possible.
  872.  
  873. The author would also welcome suggestions for enhancments to these
  874. programs.
  875.  
  876.  
  877. Errors:
  878. -------
  879.  
  880. When OzPKE detects an error condition, it displays an appropriate message
  881. in a pop-up box. If PGP returns an errorlevel greater than zero, this is
  882. also reported, including a brief error text. When PGP returns errorlevels
  883. 1 or 3 during decryption, OzPKE will make one attempt to correct the
  884. defective message block.
  885.  
  886. If Debug mode is enabled, OzPKE will display additional advisory
  887. information and pause for 2 seconds after each activation of PGP. Turn
  888. this off when you are satisfied that PGP and OzPKE function correctly.
  889.  
  890. Some users have experienced problems with a previous version in that the
  891. environment buffer was inadequate to accommodate their passwords. This can
  892. be overcome by changing the command line for OzPKE in External Menu to the
  893. following:  
  894.     c:\command.com /e:1024 /c ozpke x
  895. Change the location for COMMAND.COM and the necessary environment size as
  896. necessary. This "work-around" should no longer be required with version 1.0c
  897. of OzPKE (or later).
  898.  
  899.  
  900. Configuration file:
  901. -------------------
  902.  
  903. The file OZPKE.CFG must be located in the same directory in which
  904. OZPKE.EXE is located. Lines beginning with semicolon are treated as
  905. comments. Remove the semicolons to activate the command.
  906.  
  907. ;  This is the configuration file for OZPKE and must be in the
  908. ; directory where OZPKE is located, usually the OZCIS directory.
  909. ; Entries can be either upper or lower case.
  910. ;
  911. ; PROG is complete path to PGP.EXE or other public key encryptor.
  912. PROG=C:\PGP\PGP.EXE
  913. ;
  914. ; TEMP points to a temporary working directory, preferably on a RAM disk.
  915. ; If not defined here, the environment variables TEMP or TMP will be
  916. ; checked for a valid path to a temporary directory. If nothing else is
  917. ; defined, temporary files will be stored in PGP's directory.
  918. TEMP=G:\TEMP
  919. ;
  920. ; OZCIS is the directory where OzCIS' program file and HOST.DB are located.
  921. OZCIS=D:\OZCIS
  922. ;
  923. ; USER must contain your ID number as stored in SECRING.PGP.
  924. ; (This is changed from the user name in previous versions.)
  925. ; Example: USER=0x61C7A5
  926. USER=User ID
  927. ;
  928. ; LIST is complete path to LIST.COM or other file viewer or editor.
  929. LIST=c:\util\list.com
  930. ;
  931. ; PASS is your password to PGP's secret ring file.
  932. ; If not defined, then pass it on command line to OZPKE after "-p".
  933. ; Leading/trailing blanks are removed.
  934. ;PASS=
  935. ;
  936. ; PRIV may contain the PGP command string for private message only.
  937. ; The default for PGP is internal to program and defaults to:
  938. ;PRIV= %i "%a" -u %u -o %o -eat +clearsig=off 
  939. ;
  940. ; where:
  941. ;        %i is placeholder for filename of input file to encode
  942. ;        %a is placeholder for name or ID number of addressee
  943. ;        %u is placeholder for name of user as stored in SECRING.PGP
  944. ;        %o is placeholder for filename of output file after encoding
  945. ;
  946. ;    Quotes around %a are required!
  947. ;
  948. ; SIGO may contain the PGP command string for signature only.
  949. ; The default for PGP is internal to program and defaults to:
  950. ;SIGO= %i -u %u -o %o -sat +clearsig=on
  951. ;
  952. ; SIGP may contain the PGP command string for signature and private.
  953. ; The default for PGP is internal to program and defaults to:
  954. ;SIGP= %i "%a" -u %u -o %o -seat +clearsig=off
  955. ;
  956. ; BINSIG contains command string for binary file attachments,
  957. ; signature and private.
  958. ; The default for PGP is internal to program and defaults to:
  959. ;BINSIG= %i "%a" -u %u -o %o -es
  960. ;
  961. ; BINPRV contains command string for binary file attachments,
  962. ; private message only.
  963. ; The default for PGP is internal to program and defaults to:
  964. ;BINPRV= %i "%a" -u %u -o %o -e
  965. ;
  966. ; ASCSIG contains command string for ASCII file attachments,
  967. ; signature and private.
  968. ; The default for PGP is internal to program and defaults to:
  969. ;ASCSIG= %i "%a" -u %u -o %o -sea
  970. ;
  971. ; ASCPRV contains command string for ASCII file attachments,
  972. ; private message only.
  973. ; The default for PGP is internal to program and defaults to:
  974. ;ASCPRV= %i "%a" -u %u -o %o -ea
  975. ;
  976. ; DEBUG can be set to 0/1 or N/Y to disable or enable additional messages
  977. ; and delays for debugging purposes. Default=N
  978. ;DEBUG=N
  979. ;
  980. ; DECODE contains PGP command for decoding messages.
  981. ; The default for PGP is internal to program and defaults to:
  982. ;DECODE= %i -o %o
  983. ;
  984. ; FILEDECODE contains PGP command for decoding files to original name.
  985. ; The default for PGP is internal to program and defaults to:
  986. ;FILEDECODE=%i -p
  987. ;
  988. ; FORUM can be set to 0/1 or N/Y to disable or enable processing of
  989. ; outgoing forum message files. Default=N
  990. ;FORUM=N
  991. ;
  992. ; BAK can be set to 0/1 or N/Y to disable or enable making a backup of forum
  993. ; and CIS message files. Default=Y
  994. ;BAK=Y
  995. ;
  996. ; APPEND can be set to 0/1 or N/Y to disable or enable appending of decoded
  997. ; messages to the CISMAIL.MSG file. Default=N.
  998. ; Due to problem with OzCIS not reloading CISMAIL.MSG after DOS gateway, this
  999. ; command does not yet function correctly. An OzCIS version later than 2.0a
  1000. ; may support this feature.
  1001. ;APPEND=N
  1002. ;
  1003. ; To determine storage for plain-text copies of encoded outgoing messages 
  1004. ; before encryption.
  1005. ; OUTBOX can be set to:
  1006. ;    CISMAIL  : stores only Cismail messages to CISMAIL.OBS
  1007. ;    FORUM    : stores only forum messages to <forum>.OBS
  1008. ;    BOTH     : stores both Cismail and forum messages
  1009. ;    NONE     : neither.
  1010. ; Actual name for <forum>.OBS is stored in FORUMS.DB and for CISMAIL.OBS in
  1011. ; HOST.DB. For a forum in which "Save Outbox Msgs?" is set to "N", the
  1012. ; forum setting here will be ignored.
  1013. ; Settings can be abbreviated to just first letter. Default=None.
  1014. ;OUTBOX=None
  1015. ;
  1016. ; Keep plain-text output file from PGP rather than deleting it, so that
  1017. ; the message can be inserted into OzCIS' reply editor (^KR) for quoting.
  1018. ; Default=N
  1019. ;KEEP=N
  1020. ;
  1021. ; Upload outgoing PGP ASCII messages as files instead of normal text messages.
  1022. ; This should only be needed if ASCII text messages are corrupted when
  1023. ; transmitted normally. Default=N
  1024. ;UPLASCII=N
  1025. ;
  1026. ; Directory in which to store the ASCII PGP files to be uploaded.
  1027. UPLPATH=D:\OZCIS\PGP
  1028. ;
  1029. ; Directory in which to store the BINARY PGP files to be uploaded. 
  1030. BINPATH=D:\OZCIS\PGPBIN
  1031. ;
  1032. ; Directory in which to store decoded binary PGP files. 
  1033. BINDEC=D:\OZCIS\BINDEC
  1034. ;
  1035. ; Directory in which to store decoded ASCII PGP files. 
  1036. ASCDEC=D:\OZCIS\ASCDEC
  1037. ;
  1038. ; Overwrite (wipe) temporary plain-text files before deleting them.
  1039. ; Default=N
  1040. ;WIPE=N
  1041. ;
  1042. ; ---- End of OzPKE.CFG ----
  1043.  
  1044.  
  1045. OzPKE History:
  1046. --------------
  1047.   Date    Version   Comments
  1048. 01/12/94    1.2     Revised documentation for ViaCrypt-PGP
  1049.  
  1050. 12/07/93    1.2     Converted OzPKE & OzPKD to units in common program.
  1051.  
  1052.                     Reduced memory footprint during DOS gateway.
  1053.  
  1054.                     Trap for empty Outbox filename under host options.
  1055.  
  1056.                     Make any missing subdirectories
  1057.  
  1058. 12/02/93    1.1     Removed check for recipient if signature-only.
  1059.  
  1060.                     Check for CIS or Internet address match in pubring entry
  1061.                     and skip pick list if match found.
  1062.  
  1063.                     Accept multi-line addresses in pubring list.
  1064.  
  1065.                     Wipe plain-text message files as appropriate and also
  1066.                     OZPKE.SWP if used.
  1067.  
  1068.                     Handle ASCII or binary encryption of file attachments.
  1069.  
  1070. 11/18/93    1.0e    Added switch UPLASCII and UPLPATH in OzPKE.CFG for
  1071.                     uploading ASCII PGP messages with protocol for cases
  1072.                     when ASCII messages garbled in normal method.
  1073.  
  1074. 10/28/93    1.0d    Improved error trapping for missing OzPKE.CFG
  1075.  
  1076.                     Display appropriate error message from PGP in addition
  1077.                     to errorlevel.
  1078.  
  1079.                     Increase number of free bytes needed in environment
  1080.  
  1081. 10/16/93    1.0c    Revised handling of user and recipient names: now passes
  1082.                     6-digit ID numbers instead of full names to PGP. Long
  1083.                     names would cause overflow of command line to PGP.
  1084.  
  1085.                     If environment buffer has insufficient space for password
  1086.                     and path to PGP, temporary environment is used.
  1087.  
  1088.                     Corrected pathname problems to files like CISMAIL.REP.
  1089.  
  1090.                     Debug mode now displays command line to PGP.
  1091.  
  1092. 10/06/93    1.0b    Additional error trapping during initialization.
  1093.  
  1094. 09/03/93    1.0a    Initial release.
  1095.  
  1096. OzPKD History:
  1097. --------------
  1098.   Date    Version   Comments
  1099. 12/13/93    1.2     Fixed bug in storing path to PGP in environment.
  1100.  
  1101.                     Converted to unit with OzPKE under common program.
  1102.  
  1103.                     If PGP returns errorlevel 1 (Invalid File) or 3
  1104.                     (Unknown File), try to repair file: 
  1105.                        1) remove possible leading blanks within PGP block 
  1106.                        2) discard extraneous text
  1107.                        3) call PGP again
  1108.  
  1109.                     Make any missing subdirectories
  1110.  
  1111. 12/01/93    1.1     Wipe plain-text message files as appropriate and also
  1112.                     OZPKD.SWP if used.
  1113.  
  1114.                     Handle decryption of ASCII or binary files.
  1115.  
  1116. 10/28/93    1.0b    Increase number of free bytes needed in environment
  1117.  
  1118.                     Improve error handling if OzPKE.CFG not found
  1119.  
  1120.                     Make certain that MAIL.PGP and MAIL.TXT deleted before
  1121.                     exiting back to OzCIS.
  1122.  
  1123.                     Add command KEEP in OzPKE.CFG to not delete MAIL.TXT
  1124.                     after viewing plain-text output from PGP.
  1125.  
  1126.                     Display appropriate error message from PGP in addition
  1127.                     to errorlevel.
  1128.  
  1129.                     New Macro, ^R, defined to loaded decrypted message into
  1130.                     OzCIS reply editor.
  1131.  
  1132. 10/16/93    1.0a    If environment buffer has insufficient space for password,
  1133.                     temporary environment is used.
  1134.  
  1135.                     Corrected pathname problems to files like CISMAIL.REP.
  1136.  
  1137.                     Debug mode now displays command line to PGP.
  1138.  
  1139. 09/03/93    1.0     Initial release.
  1140.  
  1141.  
  1142.  
  1143. Suggestions from users:
  1144. -----------------------
  1145.  
  1146. One user is concerned about the decoded message being left on disk in
  1147. a recoverable form. He writes:
  1148.  
  1149.   "I have worked out a reasonable solution for myself.  I set KEEP=Y so
  1150.    that MAIL.TXT is created when I decrypt.  When I decrypt a message,
  1151.    though, I run the following batch file instead of OzPKD:
  1152.  
  1153.       @echo off
  1154.       c:\ozcis2\ozpkd.exe -p %1
  1155.       cls
  1156.       be ask "Would you like to reply to this note? " ny DEF=n
  1157.       if errorlevel 2 goto end
  1158.       wipefile c:\pgp\temp\mail.txt /g
  1159.       :end
  1160.  
  1161.   "After I am done reading a decrypted message, the batch file gives me
  1162.    the choice of preserving the plaintext for a reply, or wiping it out
  1163.    immediately.  If I choose to retain it, I still must use ^R to invoke 
  1164.    the reply feature.  However, I also modified the ^R macro to run 
  1165.    wipefile on MAIL.TXT after it finishes loading it into the OzCIS Reply 
  1166.    Editor.  I accomplished this by creating a new external to run the 
  1167.    necessary wipefile command.  My ^R macro simply executes this external 
  1168.    after it has finished loading MAIL.TXT into the reply editor.  As long 
  1169.    as I use ^D and ^R consistently, one or the other of the two macros will
  1170.    wipe MAIL.TXT from my hard drive."
  1171.  
  1172. Note: Starting with this version of OzPKE, replace the second line in his
  1173. batch file with the following command:
  1174.  
  1175.       c:\ozcis2\ozpke.exe -d -p %1
  1176.  
  1177.  
  1178. The same user also thought of a clever way to keep his encrypted outgoing
  1179. messages available for review. He writes:
  1180.  
  1181.   "OZPKE has an option to APPEND an outgoing message to the CISMAIL.MSG
  1182.    file.  As you correctly point out, this doesn't work right now, because
  1183.    of the way OZCIS handles its buffers when you shell out to DOS (I ran
  1184.    into this problem months ago with Todd Fiske's OZM).  I wanted to point
  1185.    out, however, that it may not be necessary to have this feature in
  1186.    OZPKE, unless the user wants to save *plaintext* to the CISMAIL.MSG
  1187.    file. I set OZCIS to save all outgoing mail to my CISMAIL.MSG file. 
  1188.    This way, the ciphertext gets saved to the message file.  If I want to
  1189.    read messages I sent, I merely decrypt them using ^D.  I can decrypt
  1190.    messages I sent, because I include myself as a recipient of every
  1191.    message I send.  I managed this by putting my ID on the command line
  1192.    for SIGP and PRIV in OZPKE.CFG.  This arrangement gives me greater
  1193.    security, because plaintext is never stored on the hard drive."
  1194.  
  1195. Note: This trick doesn't work quite as expected if UPLASCII=Y since only
  1196. the reference to the uploaded message is written to the message file.
  1197.  
  1198. ====== End of OzPKE documentation =============================
  1199.