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 |
Description |
|---|---|
|
domainID |
Domain ID. Domain IDs are divided into different domains to facilitate key management: keypass 0, whitelist 1, keytab_server 2 and keytab_client 3. |
|
plainfileName |
File path. |
Usage Guideline
None
Examples
- Example 1:
./kmc_tool 2 --fileEncrypt ./keytab_server

The encrypted keytab file is en_keytab_server, as shown in the following figure.

- Example 2:
./kmc_tool 3 --fileEncrypt ./keytab_client

The encrypted keytab file is en_keytab_client, as shown in the following figure.

- Example 3:
./kmc_tool 1 --fileEncrypt whitelist

The encrypted whitelist file is en_whitelist, as shown in the following figure.

Parent topic: Parameter Description