Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
SYNTAX TBC
To configure the keystore, you will use the Java keytool -importpass
command at the command line.
Keytool Syntax
For reference, here is the full syntax and the values you will need to use. The steps below provide example commands.
Panel | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
|
<keytool>
"%JAVA_HOME%\bin\keytool.exe"
&"$env:JAVA_HOME\bin\keytool.exe"
$JAVA_HOME/bin/keytool
<keyAlias>
The alias for a username or password.
The phixflow-secret.xml configuration file refers to the <keyAlias>
so that PhixFlow knows which encrypted secret to retrieve from the keystore.
After you enter an alias, the keytool prompts you to enter the corresponding username or password. This is the actual value that the database requires to permit access.
The installer sets up a keystore during installation and configures the username and password for the database.
If you have local users you also need to set up a Pepperkey
Wikipedia article on Pepper Encrytption
Adding Data to the Keystore
-importpass
command to enter a key.secretpass
"%JAVA_HOME%\bin\"hiddensecretpass"%JAVA_HOME%\bin\"hiddensecretpassLinux:$JAVA_HOME/bin/phixflow-database-passwordhiddensecretpass$JAVA_HOME/bin/phixflow-database-passwordhiddensecretpass- 2.2 When prompted, enter the password for the keystore file. This is the same password you set in step 1.2. This time the password opens the keystore.
- 2.3 When prompted for the password or secret to be stored, enter the actual password for the PhixFlow database.Understanding How PhixFlow Uses A Keystore
How PhixFlow authenticates to its database using a keystore
Details used in the diagram | ||
---|---|---|
Keystore file name | hidden.jks | |
Keystore password | storepw | |
Environment variable name | KEY_PASS | |
Environment variable value (the keystore password) | storepw | |
PhixFlow database credentials | Username | Password |
Actual |
| P*59word |
Alias | phixflow-database-user | phixflow-database-password |
Note |
---|
The default keystore filename set in |