To use this function, you need to configure the port information in the ms_controller.json configuration file of the Controller and the node_manager.json configuration file of the Node Manager. In addition, you need to configure the HTTPS certificate information to ensure communication transmission security. For details about the ms_controller.json configuration file, see Startup Configuration File (ms_controller.json). The following is an example of the node_manager.json configuration file. For details about the parameters, see Table 1. You can configure the file as needed.
{
"version": "v1.0",
"controller_alarm_port": 1027,
"node_manager_port": 1028,
"heartbeat_interval_seconds": 5,
"tls_config": {
"server_tls_enable": true,
"server_tls_items": {
"ca_cert" : "./security/node_manager/security/certs/ca.pem",
"tls_cert": "./security/node_manager/security/certs/cert.pem",
"tls_key": "./security/node_manager/security/keys/cert.key.pem",
"tls_passwd": "./security/node_manager/security/pass/key_pwd.txt",
"kmcKsfMaster": "./security/node_manager/tools/pmt/master/ksfa",
"kmcKsfStandby": "./security/node_manager/tools/pmt/standby/ksfb",
"tls_crl": ""
},
"client_tls_enable": true,
"client_tls_items": {
"ca_cert" : "./security/node_manager/security/certs/ca.pem",
"tls_cert": "./security/node_manager/security/certs/cert.pem",
"tls_key": "./security/node_manager/security/keys/cert.key.pem",
"tls_passwd": "./security/node_manager/security/pass/key_pwd.txt",
"kmcKsfMaster": "./security/node_manager/tools/pmt/master/ksfa",
"kmcKsfStandby": "./security/node_manager/tools/pmt/standby/ksfb",
"tls_crl": ""
}
}
}
Parameter |
Value Range |
Configuration Description |
|---|---|---|
version |
- |
Version number. |
controller_alarm_port |
[1024, 65535] |
Mandatory. The default value is 1027. Port used when the Controller functions as the alarm server. |
node_manager_port |
[1024, 65535] |
Mandatory. The default value is 1028. Node Manager server port. |
heartbeat_interval_seconds |
[1, 60], in seconds. |
Mandatory. The default value is 5. Interval for checking the endpoint health status. |
tls_config: HTTPS configuration |
||
server_tls_enable |
true: enabled. false: disabled. |
Mandatory. The default value is true. Whether to enable TLS on the Node Manager HTTPS server. You are advised to enable this function to ensure communication security between the Node Manager and the client. If this function is disabled, high network security risks exist. |
server_tls_items: certificate configuration of the HTTPS server |
||
ca_cert |
- |
Mandatory when TLS is enabled. Path of the CA root certificate file of the Node Manager HTTPS server. The file must exist and be readable. |
tls_cert |
- |
Mandatory when TLS is enabled. Path of the TLS certificate file of the Node Manager HTTPS server. The file must exist and be readable. |
tls_key |
- |
Mandatory when TLS is enabled. Path of the TLS private key file of the Node Manager HTTPS server. The file must exist and be readable. |
tls_passwd |
- |
Mandatory when TLS is enabled. Path of the private key password encrypted by KMC on the Node Manager HTTPS server. The file must exist and be readable. |
kmcKsfMaster |
- |
Mandatory when TLS is enabled. KMC key store file of the Node Manager HTTPS server encryption password. The file must exist and be readable. |
kmcKsfStandby |
- |
Mandatory when TLS is enabled. Standby KMC key store file of the Node Manager HTTPS server encryption password. The file must exist and be readable. |
tls_crl |
- |
Mandatory when TLS is enabled. Path of the CRL file for the Node Manager HTTPS server to verify the client. The file must exist and be readable. If the value is empty, revocation verification is not performed. |
client_tls_enable: |
true: enabled. false: disabled. |
Mandatory. The default value is true. Whether to enable TLS on the Node Manager HTTPS client. You are advised to enable this function to ensure Node Manager communication security. If this function is disabled, high network security risks exist. |
client_tls_items: HTTPS client certificate configuration |
||
ca_cert |
- |
Mandatory when TLS is enabled. Path of the CA root certificate file of the Node Manager HTTPS client. The file must exist and be readable. |
tls_cert |
- |
Mandatory when TLS is enabled. Path of the TLS certificate file of the Node Manager HTTPS client. The file must exist and be readable. |
tls_key |
- |
Mandatory when TLS is enabled. Path of the TLS private key file of the Node Manager HTTPS client. The file must exist and be readable. |
tls_passwd |
- |
Mandatory when TLS is enabled. Path of the private key password encrypted by KMC on the Node Manager HTTPS client. The file must exist and be readable. |
kmcKsfMaster |
- |
Mandatory when TLS is enabled. KMC key store file of the Node Manager HTTPS client encryption password. The file must exist and be readable. |
kmcKsfStandby |
- |
Mandatory when TLS is enabled. Standby KMC key store file of the Node Manager HTTPS client encryption password. The file must exist and be readable. |
tls_crl |
- |
Mandatory when TLS is enabled. Path of the CRL file for the Node Manager HTTPS to verify the client. The file must exist and be readable. If the value is empty, revocation verification is not performed. |