Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
borderColor | #7da054 |
---|---|
titleColor | white |
titleBGColor | #7da054 |
borderStyle | solid |
title | Sections on this page |
$JAVA_HOME/bin/keytool
where
<keytool>
depends on OS or command tool:"%JAVA_HOME%\bin\keytool.exe"
&"$env:JAVA_HOME\bin\keytool.exe"
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 |
Configuring Keystore Reading
The configuration file webapp/WEB-INF/classes/phixflow-secret.xml
manages PhixFlow authenticating to its own database. As well as having the keystore filename, you can use the options in this to configure how often PhixFlow re-reads data from the keystore.
There are two ways to use the keystore
PhixFlow is configured to periodically check the keystore directly based on the retryDelay
set in phixflow-secret.xml
Alternatively, you can configure PhixFlow to only read the keystore when it starts
title | Checks periodically |
---|
Code Block |
---|
<!--
To directly use keyStoreService and not the caching service,
comment the CachingSecretService bean elements and change the bean id of KeystoreSecretService to secretService
There should be a bean defined with id secretService always, as that's is referred in phixflow-datasource.xml
-->
<bean id="secretService" class="com.accipia.centerview.service.secret.CachingSecretService">
<property name="cachingPeriod">
<value>10000</value>
</property>
<property name="secretService" ref="keyStoreSecretService">
</property>
</bean>
<bean id="keyStoreSecretService" class="com.accipia.centerview.service.secret.KeystoreSecretService">
<property name="retries"><!-- keystore type (PKCS12 or JCEKS) -->
<value>3</value>
</property>
<property name="retryDelay">
<value>10000</value>
</property> |
title | Only checks on startup |
---|
Using the keyStoreService
. |