Encrypt username and password
All usernames and passwords are encrypted inside the configuration file. To achieve this, it is necessary to execute the ima_jmx_prometheus_httpserver JAR file with the command line option -e (see below):
-
Open a command line.
-
Navigate to the folder where the JAR file is located.
-
Run the following command to encrypt the username:
java -jar ima_jmx_prometheus_httpserver-9.11.1.1-prom-0.14.0-jar-with-dependencies.jar –e
This will prompt for a string to encrypt.
-
Enter the username you want to encrypt.
-
Copy the encrypted username into your configuration file.
-
Run the same command to encrypt the password:
java -jar ima_jmx_prometheus_httpserver-9.11.1.1-prom-0.14.0-jar-with-dependencies.jar –e
This will prompt for a string to encrypt.
-
Enter the password you want to encrypt.
-
Copy the encrypted password into your configuration file.