Chapter 8. Securing passwords with a keystore
You can use a keystore to encrypt passwords that are used for communication between Business Central and Process Server. You should encrypt both controller and Process Server passwords. If Business Central and Process Server are deployed to different application servers, then both application servers should use the keystore.
Use Java Cryptography Extension KeyStore (JCEKS) for your keystore because it supports symmetric keys. Use KeyTool, which is part of the JDK installation, to create a new JCEKS.
If Process Server is not configured with JCEKS, Process Server passwords are stored in system properties in plain text form.
- Process Server is installed in Oracle WebLogic Server.
A Process Server user with the
kie-serverrole has been created, as described in Section 4.1, “Configuring the Process Server group and users”.
- Java 8 or higher is installed.
To use KeyTool to create a JCEKS, enter the following command in the Java 8 home directory:
$<JAVA_HOME>/bin/keytool -importpassword -keystore <KEYSTORE_PATH> -keypass <ALIAS_KEY_PASSWORD> -alias <PASSWORD_ALIAS> -storepass <KEYSTORE_PASSWORD> -storetype JCEKS
In this example, replace the following variables:
<KEYSTORE_PATH>: The path where the keystore will be stored
<KEYSTORE_PASSWORD>: The keystore password
<ALIAS_KEY_PASSWORD>: The password used to access values stored with the alias
<PASSWORD_ALIAS>: The alias of the entry to the process
- When prompted, enter the password for the Process Server user that you created.
Set the system properties listed in the following table:
Table 8.1. System properties used to load a Process Server JCEKS
System property Placeholder Description
URL for the JCEKS that you want to use, for example
Password for the JCEKS
Alias of the key for REST services where the password is stored
Password of the alias for REST services with the stored password
Alias of the key for default REST Process Automation Controller where the password is stored
Password of the alias for default REST Process Automation Controller with the stored password
- Start Process Server to verify the configuration.