fileEncrypt
Function
Encrypts the whitelist or keytab file.
There are two keytab files: keytab_server and keytab_client, which correspond to domainID 2 and domainID 3, respectively. The encrypted content is stored in the corresponding file in the current directory.
Syntax
./kmc_tool domainID --fileEncrypt plainfileName
Parameter Description
|
Parameter |
Option |
Description |
|---|---|---|
|
domainID |
- |
Domain ID. Domain IDs are divided into different domains to facilitate key management: whitelist 1, keytab_server 2 and keytab_client 3. |
|
plainfileName |
- |
File path. |
Examples
- Example 1: Encrypting the keytab_server file
./kmc_tool 2 --fileEncrypt ./keytab_server

The key file is en_keytab_server and ./keytab_server is the file path.
- Example 2: Encrypting the keytab_client file
./kmc_tool 3 --fileEncrypt ./keytab_client

The key file is en_keytab_client and ./keytab_client is the file path.
- Example 3: Encrypting the whitelist file
./kmc_tool 1 --fileEncrypt whitelist

The key file is en_whitelist and ./whitelist is the file path.
Parent topic: Key Management Tool