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

  1. Log in to the MEF Center device environment as the root user.
  2. 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
  3. 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.

  4. Restart MEF Center for the configuration to take effect. For details, see Restarting MEF Center.

Configuring an Encryption Algorithm for MEF Edge

  1. Log in to the MEF Edge device environment as the root user.
  2. 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_om
      Edit 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_main
      Edit 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.

  3. Restart MEF Edge for the configuration to take effect. For details, see Restarting MEF Edge.