Keyfactor Command Service appsetting.json File

The Service appsettings.json file allows you to view or change the Keyfactor Command Service installation and configuration settings. By default, the Keyfactor Command Service job sets all service jobs to run based on the configuration wizard setting (see Service Tab). The setting for select service jobs can be changed in the appsettings.json file.

To update the appsettings.json file for service configuration:

  1. Navigate to the Service\Configuration folder on your server, located by default at:

    C:\Program Files\Keyfactor\Keyfactor Platform\Service\Configuration
  2. Browse to open the appsettings.json file in a text editor (e.g. Notepad) and adjust the values as needed as per Table 88: Keyfactor Command Services Configuration Settings and Keyfactor Command Service Automated Tasks.

    Figure 442: Appsettings.json File for TimerService Settings

  3. Save the file.

Table 88: Keyfactor Command Services Configuration Settings

Setting Description
NLog Config File

Enter the file path to the NLog_TimerService.config file as a subdirectory of the Service\Configuration directory. The default is:

NLog_TimerService.config

This translates to, for example:

C:\Program Files\Keyfactor\Keyfactor Platform\Service\Configuration\NLog_TimerService.config
Extensions Directory

Enter the file path to the extensions to be loaded by the extension loader as a subdirectory of the Service directory (for registration handler, workflow step, etc... support). The default value is Extensions. This translates to, for example:

C:\Program Files\Keyfactor\Keyfactor Platform\Service\Extensions
Active Directory Enforced This should be set to false if you are not using Active Directory. An IIS reset will be required to apply this setting if you change it.
Sql Retry Configuration SQL retry settings (seeKeyfactor Command Changing SQL Retry Settings for more information).
Setting Description
Number Of Tries The number of times it will try the connection before an exception is thrown
Delta TimeThe preferred gap time (in seconds) to delay before retry
Max Time IntervalThe maximum gap time (in seconds) for each delay time before retry
Metadata Generation
Setting Description
Version This timer service job iterates over the certificates in the database, looks fora value less than the version set here, and if true, sets the certs’ property with the version number specified here.
Parallelism The how many threads of the job run simultaneously.
Progress Interval How often ( in milliseconds) the work from cache is saved to the database.
Lock Timeout The wait time in milliseconds to acquire a lock on a job for High Availability.