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):

  1. Open a command line.

  2. Navigate to the folder where the JAR file is located.

  3. 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.

  4. Enter the username you want to encrypt.

  5. Copy the encrypted username into your configuration file.

  6. 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.

  7. Enter the password you want to encrypt.

  8. Copy the encrypted password into your configuration file.