Create a keystore on the Windows platform

Create a keystore on the Windows platform

You might need to create a keystore on the Windows platform, e.g., for the preview client or the remote client. The steps below explain how to do this in detail.

1) Open a Command Prompt

  • Start a command prompt.

  • You can do this by searching for an app named:

cmd

2) Change the Directory

Navigate to the directory where you want to create the keystore file. You can do this by searching for an app named:
For example, you can change the directory to:
C:\ProgramData\InterFormNG2
Warning
Do NOT place the keystore inside any of the InterformNG2 data or program directories.
A future upgrade might move or delete the keystore file.

3) Create the Keystore File

Run the following command:
keytool -genkeypair -alias previewclient -keyalg RSA -keysize 2048 -storetype PKCS12 -keystore previewclient.jks -validity 3650
Explanation of Command Parameters:
-alias previewclient → Sets the alias in the keystore as previewclient.
-keyalg RSA -keysize 2048 → Uses RSA encryption with a 2048-bit key.
-storetype PKCS12 → Specifies the keystore format.
-keystore previewclient.jks → Creates the keystore file previewclient.jks.
-validity 3650 → The keystore is valid for 10 years (3650 days).

4) Respond to the Keystore Prompts

  NG2Keystore0001

When prompted, enter the required information.

Make a note of the password you entered, as you will need it when referring to the keystore in InterformNG2, both in:

  • System settings

  • Preview client

5) Referencing the Keystore in InterformNG2

In the example above, you should refer to the keystore file with the following path:

C:\ProgramData\InterFormNG2\previewclient.jks