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:
- Open a command console
- Go to the Saga_Server directory
Enter:
java -jar .\bin\saga-secure-1.3.3-SNAPSHOT.jar -ep=<your password> -path=<destination path> -config=config\config.json
- 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.
- Open a command console
- Go to the Saga_Server directory
Enter:
java -jar bin\saga-secure-1.3.0.5-SNAPSHOT.jar -gks -path=<destination path> -config=config\config.json
- 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.
- Also a file called saga.jks containing the Java Keystore will be in the same path.
- Also a saga.cer file containing the certificate will be in the same path.