Generate a Key Store file

Complete these instructions to create a Key Store file.

About this task

Important: Ensure that you use the same password throughout the process.

Procedure

  1. Access a Windows command prompt.
  2. Create and execute the following .BAT file:
    Important: The last three lines shown in this example, beginning with "%JAVA_HOME%\bin\keytool", is only one line of text in the .BAT file. The example is shown as is for readability purposes.
     
     SET ALIAS=RocketMVS
     SET KEYSTORE_PASSWORD=yourPasswordHere
     SET PRIVATE_KEY_PASSWORD=yourPasswordHere
     SET RESULT_FILE=..\bin\mvtk.ks
     SET COMMON_NAME=RocketSoftwareOS
     SET ORG_UNIT=D3MV
     SET ORG=Rocket Software
     SET COUNTRY=US
     SET DAYS_BEFORE_EXPIRE=360
     IF EXIST %RESULT_FILE% echo Deleting existing KeyStore file
     IF EXIST %RESULT_FILE% del %RESULT_FILE%
     @echo Generating KeyStore: %RESULT_FILE%
     "%JAVA_HOME%\bin\keytool" -genkey -dname "cn=%COMMON_NAME%, ou=%ORG_UNIT%, 
      o=%ORG%, c=%COUNTRY%" -alias %ALIAS% -keypass %PRIVATE_KEY_PASSWORD% -keystore  
      %RESULT_FILE% -storepass %KEYSTORE_PASSWORD% -validity %DAYS_BEFORE_EXPIRE%