Appsettings.json File
Access to some configuration options after you have installed the AnyCAGateway REST are available in the appsettings.json file.
To update the appsettings.json file:
-
Navigate to the install directory, by default at:
C:\Program Files\Keyfactor\Keyfactor AnyCA Gateway\AnyGatewayREST\net8.0\Configuration - Open the appsettings.json file in a text editor such as Notepad and adjust the values as needed.
-
Save the file.
{
"BasePath": "AnyGatewayREST",
"NLogConfigFile": "configuration/nlog.config",
"AllowedHosts": "*",
"CheckClientCertCRL": "true",
"LockTimeoutMilliseconds": 5000,
"ExtensionsDirectory": "Extensions",
"SqlRetryConfiguration": {
"MaxTimeInterval": "00:02:00",
"DeltaTime": "00:00:00.5",
"NumberOfTries": "5"
},
"Cache": {
"CertificateValidationCacheExpirationMinutes": 10,
"CAConfigurationCacheExpirationMinutes": 10,
"RoleClaimsCacheExpirationMinutes": 10
},
"LockHoldTimeoutMilliseconds": 900000,
"LockHeartbeatIntervalMilliseconds": 60000,
"Authentication": {
"DefaultIdentityProviderAuthScheme": "",
"SuperAdmin": {
"Description": "SuperAdmin",
"Type": "X509Certificate_Thumbprint",
"Value": "ef27ac4f350764966e8ac5b08c07d7cd1c2d01c9"
},
"UseOAuth": "false",
"AuthCAs": {
"RootCA": {
"FilePath": "C:\\Program Files\\Keyfactor\\v25AnyCA\\AnyGatewayREST\\net8.0\\configuration\\rootca.crt"
}
},
"CookieExpirationMinutes": "",
"SessionExpirationMinutes": ""
}
}
Table 1072: Appsettings.json File Settings
Setting | Description | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Allowed Hosts |
A Microsoft setting for host filtering. For more information, see: |
||||||||||||||
BasePath | The virtual directory for the new IIS application. This will be used in the base path for the AnyCAGateway REST portal in the browser. | ||||||||||||||
Authentication |
|
||||||||||||||
Cache | |||||||||||||||
Check Client Cert CRL | A Boolean that indicates whether the CRL will be checked against the client authentication certificate that authenticated to the portal true/false (see Login Claim for Client Certificate Authentication). | ||||||||||||||
Extension Directory |
The name of the directory where third-party integration artifacts will be installed. This defaults to Extensions, installed by default at: C:\Program Files\Keyfactor\Keyfactor AnyCA Gateway\AnyGatewayREST\net8.0\Extensions
|
||||||||||||||
Kestrel> Certificates > Default > Path | A string identifying the path to the local server authentication certificate. See Install AnyCAGateway REST on Windows under IIS. Only for Kestrel installs. | ||||||||||||||
Kestrel > Endpoints > HttpsCC > Url | A string identifying the URL, with the port number referenced by the -ServerPort parameter, assigned to this instance of the AnyCAGateway REST implementation. See Install AnyCAGateway REST on Windows under IIS. Only for Kestrel installs. | ||||||||||||||
Lock Timeout Milliseconds |
In the case of a High Availability implementation, the three Lock settings will set the lockout intervals (in milliseconds) during CA sync so multiple CA syncs are not running at the same time. It is unlikely these would need to be modified. The default for this is 5000 milliseconds. |
||||||||||||||
Lock Hold Timeout Milliseconds | The default for this is 900000 milliseconds. | ||||||||||||||
The default for this is 60000 milliseconds. | |||||||||||||||
NLog Config File | Optional. A string overriding the default location of the nlog.config file. | ||||||||||||||
SqlRetryConfiguration | The MaxTimeInverval, DeltaTime, and NumberofTries settting for the SQL connection. |
Was this page helpful? Provide Feedback