Appsettings.json File
The appsettings.json configuration file allows you to view or change select installation configuration settings for the CA Connector The Keyfactor CA Connector is installed in the customer environment to provide a connection between a CA and Keyfactor Command when a direct connection is not possible. It is supported on both Windows and Linux and has versions for Microsoft (Windows only) or EJBCA CAs. Client.
Installations on Windows
To update the appsettings.json file:
-
Navigate to the installation folder on your server, located by default at:
C:\Program Files\Keyfactor\Keyfactor CA Connector -
Browse to open the appsettings.json file in a text editor (e.g. Notepad) and adjust the values as needed (see Configuration Settings).
CopyConfigured Appsettings.json File{
"SignalR": {
"TransportTypes": "WebSockets, LongPolling",
"SkipNegotiation": false
},
"OAuthServer": {
"Scope": "",
"Audience": "",
"ClientId": "RabbitMQ",
"Address": "https://appsrvr187.keyexample.com:5443/realms/Keyfactor/protocol/openid-connect/token"
},
"CAConfigCacheExpirationMinutes": 15,
"ServerURL": "https://command188.keyexample.com/KeyfactorCAConnectors/",
"Name": "websrvr21.keyexample.com"
} - Save the files.
Installations on Linux
To update the appsettings.json file:
-
Navigate to the installation folder on your server, located by default at:
/opt/keyfactor/ca-connector -
Browse to open the appsettings.json file in a text editor (e.g. nano) and adjust the values as needed (see Configuration Settings).
CopyConfigured Appsettings.json File{
"ServerURL": "https://command188.keyexample.com/KeyfactorCAConnectors",
"OAuthServer": {
"Address": "https://appsrvr187.keyexample.com:5443/realms/Keyfactor/protocol/openid-connect/token",
"ClientId": "RabbitMQ",
"Scope": "",
"Audience": ""
},
"Name": "appsrvr162.keyexample.com",
"SignalR": {
"TransportTypes": "WebSockets, LongPolling",
"SkipNegotiation": false
},
"CAConfigCacheExpirationMinutes": "12"
} - Save the files.
Configuration Settings
The following table shows the configuration settings for the settings available in the appsettings.json file.
Table 1034: Appsetting.json File Parameters - CA Connector Client
Setting | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SignalR |
Settings controlling communication between the CA Connector Client and the CA Connector API on the Keyfactor Command server.
|
||||||||||
OAuthServer |
OAuth authentication settings.
|
||||||||||
CAConfigCacheExpirationMinutes | The number of minutes that the CA configuration will be cached before being cleared. The default is 10 minutes. | ||||||||||
ServerURL |
The URL to the CA connector application on the Keyfactor Command server. SSL is required to connect to the Keyfactor Command server. For example: https://kyf101.keyfactorpki.com/KeyfactorCAConnectors
|
||||||||||
Name | The name the CA Connector Client uses when registering as a CA connector in Keyfactor Command. The name it uses must match the name used when creating a CA connector record in Keyfactor Command. |