wazuh-keystore

The wazuh-keystore increases the security of sensitive information, storing in it any information that the Wazuh manager requires for its correct operation.

wazuh-keystore options

-h

Display the help message.

-f <FAMILY>

Specifies the target column family for the insertion.

-k <KEY>

Specifies the key for the key-value pair.

-v <VALUE>

Specifies the value associated with the key.

-vp <VALUE>

Specifies the path to a single-line file with the value.

You can use only one of the options -v or -vp at a time. If neither is specified, the tool reads the value from standard input.

When using -vp, the file must contain a single line with the value.

Example

  • Set indexer's username and password:

    # echo 'admin' | /var/ossec/bin/wazuh-keystore -f indexer -k username
    # echo 'admin' | /var/ossec/bin/wazuh-keystore -f indexer -k password
    
  • Alternate methods to set values:

    # /var/ossec/bin/wazuh-keystore -f indexer -k username -v admin
    # /var/ossec/bin/wazuh-keystore -f indexer -k password -vp /file/with/password