Encrypt password

Encrypt a password for use with Codar configuration only.

To encrypt a password, complete the following steps:

  1. Open a command prompt and change to the CSA_HOME\Tools\PasswordUtil directory. For example:

    Windows:

    C:\Program Files\HPE\Codar\Tools\PasswordUtil

    Linux:

    /usr/local/hpe/codar/Tools/PasswordUtil

  2. Run the following command:

    Windows:

    "CSA_JRE_HOME\bin\java" -jar passwordUtil-standalone.jar encrypt <myPassword>

    If you have configured Codar to be FIPS 140-2 compliant, run the following command (this example uses the same example names from "Examples used in this section" in FIPS 140-2 compliance):

    "CSA_JRE_HOME\bin\java" -jar passwordUtil-standalone.jar encrypt <password> JsafeJCE ../../jboss-as/standalone/configuration/codar_encryption_keystore.p12 < Codar encryption keystore password> codar_encryption_key
    ../../jboss-as/standalone/configuration/key.dat


    Note The path separators used in the passwordUtil-standalone.jar script options are forward slashes (/). You can also use double backward slashes (\\) as your path separators.

    If you used different names for the keystore, alias, or encrypted symmetric key file, here is an example of the command without using the example names:

    "CSA_JRE_HOME\bin\java" -jar "CSA_HOME\Tools\PasswordUtil\passwordUtil-standalone.jar" encrypt <password> JsafeJCE < Codar encryption keystore>
    < Codar encryption keystore password>
    < Codar encryption keystore alias>
    <location and name of the encrypted symmetric key>



    Note If you use path separators in the passwordUtil-standalone.jar script options, use either a single forward slash (/) or double backward slashes (\\) as your path separator.

    Linux:

    CSA_JRE_HOME/bin/java -jar passwordUtil-standalone.jar encrypt <myPassword>