encryptPasswords

The encryptPasswords utility is used to encrypt and store either of two passwords that Unica Platform uses internally.

The two passwords that the utility can encrypt are as follows.

  • The password that the Unica Platform uses to access its system tables. The utility replaces an existing encrypted password (stored in the jdbc.properties file, located in the tools\bin directory under your Unica Platform installation) with a new one.
  • The keystore password used by the Unica Platform when it is configured to use SSL with a certificate other than the default one supplied with the Unica Platform or the web application server. The certificate can be either a self-signed certificate or a certificate from a certificate authority.

When to use encryptPasswords

Use encryptPasswords as for the following reasons.

  • When you change the password of the account used to access your Unica Platform system table database.
  • When you have created a self-signed certificate or have obtained one from a certificate authority.

Prerequisites

  • Before running encryptPasswords to encrypt and store a new database password, make a backup copy of the jdbc.properties file, located in the tools/bin directory under your Unica Platform installation.
  • Before running encryptPasswords to encrypt and store the keystore password, you must have created or obtained a digital certificate and know the keystore password.

Syntax

encryptPasswords -d databasePassword

encryptPasswords -k keystorePassword

Commands

-d databasePassword

Encrypt the database password.

-k keystorePassword

Encrypt the keystore password and store it in a file named pfile.

Examples

  • When the Unica Platform was installed, the login for the system table database account was set to myLogin. Now, some time after installation, you have changed the password for this account to newPassword. Run encryptPasswords as follows to encrypt and store the database password.

    encryptPasswords -d newPassword

  • You are configuring an Unica application to use SSL and have created or obtained a digital certificate. Run encryptPasswords as follows to encrypt and store the keystore password.

    encryptPasswords -k myPassword