7.1. PGP encryption -- Server Error
As always, check the error log. The most common problem is something like:
akopia.com 3Ex5lvta:akopia.com - [01/Sep/1997:09:08:43] simple /cgi-bin/simple > Encryption error: >
Also, check the ScratchDir (usually tmp/) for .err files; they will contain PGP or GPG's error output.
Probable causes:
Interchange user ID doesn't have keyring
-
You must have a .pgp or .gnupg directory in the home directory of the user running Interchange. It is also possible to set an environment variable (variously PGPPATH or GNUPGHOME) to orient the program correctly.
EncryptProgram directive set wrong
-
In Interchange 4.7.7 and above, you only need specify "gpg", "pgp", or "pgpe". The key is set in EncryptKey. If you don't set a value for EncryptProgram, Interchange will look for gpg first, then pgpe, then finally pgp, using the first it finds. If it can't find one of those, it is set to none and encryption can't be done. You can specify a full path to the program in the directive, but no arguments need be set. NOTE: old values in EncryptProgram will still work, just are not needed.