encryptChallengeAnswer utility
The encryptChallengeAnswer utility encrypts plain text data that is stored in the database column USERREG.CHALLENGEANSWER.
The
MemberSubSystem/challengeAnswerEncrypted
configuration attribute in the instance
configuration file must be set to true to encrypt the data.
- WC_installdir/bin/encryptChallengeAnswer.sh
- WC_installdir/bin/encryptChallengeAnswer.sh
- WC_installdir/bin/encryptChallengeAnswer.bat
Syntax
Parameter values
- database_type
- Is your database type (db2 for DB2 databases).
- instance_name
- Is a mandatory parameter for the name of the instance, which to update.
- num_of_threads
- The number of threads that are created to re-encrypt the data. It is recommended that this number matches the number of processors on the server that is running the utility.
- commit_count
- The number of records that are processed before the transaction is committed. Set the commit_count to the maximum number of transactions that your database transaction log allows. A suggested value for this parameter is 5000.
If the merchant keys are not retrieved from the Key Locator Framework, the following list shows the accepted parameters:
- current_merchant_key
- An optional parameter for the current merchant key, in clear text (ASCII) form. Specify this parameter only if you are currently using a non-default merchant key, and you are now changing it to a new merchant key. In this case, also specify the new_key parameter. If you are currently using the default WebSphere Commerce Suite 5.1 merchant key, do not specify this parameter. The utility detects that you are using the default key.
If the merchant keys are retrieved from the Key Locator Framework, the accepted parameters are:
- -k keys_config_file_location
- The current and new merchant keys are to be retrieved from the Key Locator Framework using the specified key configuration file. The absolute path of the file must be specified.
Example 1
The current merchant key, 1234567890abcdef, is stored in encrypted format in the instance.xml file, and you want to encrypt the existing plain text challenge answer values in the database using this merchant key. In the example, the data is stored in a DB2 database and "demo" is the instance name:
encryptChallengeAnswer db2 demo 4 5000 1234567890abcdef
Then, do the following steps:
- Start the WebSphere Commerce instance.
- Open a command prompt and navigate to the WC_installdir/bin directory
- Run the following command:
- WC_installdir/bin/config_ant.sh -DinstanceName= instance_name UpdateEAR
- WC_userdir/bin/config_ant.sh -DinstanceName= instance_name UpdateEAR
- WC_installdir/bin/config_ant.bat -DinstanceName= instance_name UpdateEAR
- Restart your WebSphere Commerce instance.