Creating a Key Store File with Self-Signed Certificate

  1. Open a command terminal.

  2. Navigate to <eftlink installation directory>\keys or any other directory.

  3. Before executing the command below, replace <java> with the location to your JDK version and replace <alias name> with a meaningful alias. Also, replace <password> with your desired password for the keystore and certificate. Make sure to note it down, as we will need to obfuscate it later.
  4. Execute the command below. The command will ask of your first and last name (Common Name or CN). Enter the machine name or localhost and populate the other details.

  5. Once you have provided all the information (CN, OU, O, L, ST, C), confirm that it is correct.

    The command will produce the key store file, eftlink-rest-api.keystore, in the current directory.

    Command:

    <java>\bin\keytool -genkey -keyalg RSA -alias <alias name> -keystore eftlink-rest-api.keystore -storepass <password> -validity 360 -keysize 2048