Encrypt Passwords
To encrypt a value, follow these steps:
- Create a Java class.
-
Add
voltmxserver-utils.jar
to your class path.Path for voltmxserver-utils.jar:
<USER_INSTALL_DIR>/VoltMXFoundry_Plugins/middleware/voltmxserver-utils.jar
-
Call the method
EncryptDecryptText.encryptText(<valueToEncrypt>)
. This will return encrypted value.Important: Ensure that you encrypt the following placeholder values for Admin before executing Flyway migration.
For Admin:
- VOLTMX_SERVER_TRUSTSTORE_PASSWORD
- VOLTMX_SERVER_STORAGE_DATABASE_PASSWORD - Add dependency jars to the Library.
commons-io-2.4.jar
can be found at https://mvnrepository.com/artifact/commons-io/commons-io/2.4log4j-api-2.17.1.jar
can be found at https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-api/2.17.1
To encrypt a Tomcat value, follow these steps:
- Create a Java class.
-
Add
serverdeployer.jar
to your class path.Path for voltmxserver-utils.jar:
<USER_INSTALL_DIR>/VoltMXFoundry_Plugins/middleware/serverdeployer.jar
- Call the method
CryptoUtils.encrypt(<valueToEncrypt>
. This will return encrypted value. -
Add/Update the password field of the user in the
tomcat-users.xml
file, located in the tomcat_Install_dir/conf folder. Set the role name to manager.For example: