EncryptProgram
Specify a default program to handle PGP/GnuPG encryption.
Synopsis
|
EncryptProgram /path/to/program [args...]
|
If this directive is not set and Interchange finds "gpg" or "pgpe" in the Interchange user ID's ${PATH} then that
executable will be used as the default.
Scope
This directive is available for use globally
(in the "interchange.cfg" configuration file),
and locally (in the "catalog.cfg" configuration file).
The global configuration affects all websites running
under the Interchange instance.
Each individual website's local configuration will not affect
or influence other websites in any way.
|
Note
When used globally (in the interchange.cfg file),
this directive sets the default for all websites controlled by the Interchange
server.
The default can be overridden by using this directive in the local
(catalog.cfg) configuration.
|
Description
Specify default encryption program, along with optional arguments.
The program will be called to perform tasks such as encrypting credit
card details, if required.
A few placeholders can be used in the argument list, as follows:
| Placeholder
|
Description
|
| %p |
Password. |
| %f |
The name of a temporary file that can be used if required. |
| %% |
A percent symbol. |
As of version 4.7.7, Interchange doesn't require you to specify any arguments for
the PGP/GnuPG executable.
If no arguments are specified then the following will
be assumed, depending upon the name of the executable:
| Executable
|
Arguments used if found
|
| gpg |
--batch --always-trust -e -a -r KEY [-r KEY] |
| pgpe |
-fat -r KEY [-r KEY] |
| pgp |
-fat - KEY [KEY] |
This directive is different from PGP,
which is used to encrypt complete orders and not just part of their contents.
If the order Route method of sending orders is used,
which is usually the case,
then this directive will also be used to set the default value of the
encrypt_program attribute.
The following will disable encryption altogether:
Also see the EncryptKey directive.