PGP encryption -- Server Error

### Index Up << >>

## PGP encryption -- Server Error

As always, check the error log. The most common problem is something like:

        minivend.com 3Ex5lvta:minivend.com - [01/Sep/1997:09:08:43] simple /cgi-bin/simple
        > Encryption error:
        >

Probable causes:

Minivend user ID doesn't have keyring
  You must have a `.pgp` or `.gnupg` directory in the home directory of the user running MiniVend. It is also possible to set an environment variable (variously PGPPATH or GNUPGPATH) to orient the program correctly.

Trust problems
  If the key you are sending to has not been signed by another (trusted) user, then you will get error returns from some flavors of PGP, which causes the problem. Sometimes the fix is to route the error output to /dev/null (at least on UNIX) by changing the EncryptProgram directive in catalog.cfg:

       EncryptProgram  /usr/bin/pgp -fat -r sales@your.com 2>/dev/null

  For GNU Privacy Guard, GPG, you would use something like:

       EncryptProgram /usr/local/bin/gpg -fa --always-trust -r sales@your.com

      On Windows or other operating systems, the only fix is to sign the
      key or otherwise prevent the error from occurring.

### Index Up << >>