storepasswords command

The storepasswords command prompts for passwords that are blank in a profile and stores the encrypted passwords in the file. Storing encrypted passwords might not be FIPS 140-2 compliant. You can run the command for a single task or for all tasks in the profile. The command name is not case sensitive.

storepasswords command syntax

The following syntax includes line breaks to format the command for reading. Enter the command and options on a single line, without any line breaks.

Tip: If the storepasswords command prompts you to store passwords in configuration files on disk, you must respond with yes or no (instead of y or n).
configmgr_cl storepasswords [-task task_type | -taskfile task_file_name]
 -profile myprofile [-help]

storepasswords command parameters

-task task_type
The -task task_type parameter specifies a specific task to encrypt passwords for. You can omit the -task task_type parameter if you want to store passwords for all the tasks or if you specify the -taskfile task_file_name parameter. The task_name value is not case sensitive. The following table lists the valid task names, the associated configuration XML file, and a description of the CCX-GQL settings affected by the task.
Table 1. task_type values
Option Configuration file Description
omitted

downloadcejars.xml

importltpakey.xml

configureldap.xml

deployapplication.xml

If you omit the -task task_type parameter and the -taskfile task_file_name parameter, then you are prompted to enter the passwords for each configuration XML file in the profile. Each password is encrypted before it is added to the XML file.
importltpakey

importltpakey.xml

Encrypts the password for LTPA keys for importing the Content Platform Engine to the CCX-GQL server.

configureldap

configureldap.xml

Encrypts the password for the LDAPBindPassword property that is used for configuring the connection to the directory server for authenticatingContent Cortex GraphQL users.

-taskfile task_file_name
The -taskfile task_file_name parameter specifies the configuration XML file to use.

If only one task file exists for the task_type, then the -taskfile task_file_name parameter is optional.

If more than one task file for the task_type exists, then you must include the -taskfile task_file_name parameter. You can omit the -task task_type parameter when you specify the -taskfile task_file_name parameter.

-profile myprofile
The -profile myprofile parameter specifies the profile to use. The myprofile value can be one of the following items:
  • The name of the profile, such as CSGQLTestProfile. The profile must be located in the <csgql_installation_path>/csgraphQLtool/configure/profiles directory, where <csgql_installation_path> is the location where the CCX-GQL software is installed.
Remember: If the path includes a directory name with spaces, enclose the entire path in quotation marks.

storepasswords command examples

Encrypt and save all passwords for a profile.
The following command encrypts and saves passwords for any blank entries in the profile named CSGQLTestProfile.
configmgr_cl storepasswords -profile CSGQLTestProfile
Display the help for the storepasswords command.
The following command displays the help for the storepasswords command:
configmgr_cl storepasswords -help