Configuring the KMC Encryption Algorithm
You can configure the KMC encryption algorithm based on service requirements. If you do not configure it, the default configuration is used.
Configuring an Encryption Algorithm for MEF Center
- Log in to the MEF Center device environment as the root user.
- Go to the path of the MEF Center configuration file. The default installation directory is /usr/local.
cd Installation_path/MEF-Center/mef-config/public-config - Edit the algorithms field in the kmc-config.json file. The default encryption algorithm is AES_GCM_256.
{ "algorithms":"Aes256gcm" }Table 1 Description of the algorithms field Value
Description
Aes256gcm
Default value, indicating that the AES_GCM_256 encryption algorithm is used.
Aes128gcm
Indicates that the AES_GCM_128 encryption algorithm is used.
- Restart MEF Center for the configuration to take effect. For details, see Restarting MEF Center.
Configuring an Encryption Algorithm for MEF Edge
- Log in to the MEF Edge device environment as the root user.
- Go to the MEF Edge configuration file path and modify the configuration files of edge_om and edge_main. The default installation directory is /usr/local/mindx.
- Go to the directory where the edge_om configuration file is stored.
cd Installation_path/MEFEdge/config/edge_omEdit the algorithms field in the kmc-config.json file. The default encryption algorithm is AES_GCM_256.{ "algorithms":"Aes256gcm" } - Go to the directory where the edge_main configuration file is stored.
cd Installation_path/MEFEdge/config/edge_mainEdit the algorithms field in the kmc-config.json file. The default encryption algorithm is AES_GCM_256.{ "algorithms":"Aes256gcm" }Table 2 Description of the algorithms field Value
Description
Aes256gcm
Default value, indicating that the AES_GCM_256 encryption algorithm is used.
Aes128gcm
Indicates that the AES_GCM_128 encryption algorithm is used.
- Go to the directory where the edge_om configuration file is stored.
- Restart MEF Edge for the configuration to take effect. For details, see Restarting MEF Edge.
Parent topic: Common Operations