Utility for encrypting passwords and generating secure Keystores.

Some considerations:

  • Make sure Saga_Server is downloaded and the SAGA_HOME environment variable has been set to the Saga_Server directory.
  • Make sure a key file is available to use for encrypting.  Usually under Saga_Server/bin/saga.ek

Encrypting a Password

Encrypted passwords are used in the Saga config.json file for a more secure configuration:

  1. Open a command console
  2. Go to the Saga_Server directory
  3. Enter:


    java -jar .\bin\saga-secure-1.3.3-SNAPSHOT.jar -ep=<your password> -path=<destination path> -config=config\config.json



  4. A file called pwd.txt should appear in the path that was specified containing the encrypted password (unless a different directory was provided to the command).


Creating a Keystore and encrypting its Password

This creates a Java Keystore file for use by the SSL and HTTPS functionalities.

  1. Open a command console
  2. Go to the Saga_Server directory
  3. Enter:

     java -jar bin\saga-secure-1.3.3-SNAPSHOT.jar -gks -path=<destination path> -config=config\config.json
  4. A file called ksPwd.txt should appear in the Saga_Server directory containing the Keystore password both encrypted and plain and the certificate password both encrypted and plain.
  5. Also a file called saga.jks containing the Java Keystore will be in the same path.
  6. Also a saga.cer file containing the certificate will be in the same path.