Skip to main content Skip to complementary content

How to generate a keystore file

Procedure

  1. Open a command prompt window.
  2. Run the following command to generate a new file named .keystore in your home directory.
    "%JAVA_HOME%\bin\keytool" -genkey -alias tomcat -keyalg RSA
    Information noteTip: If you want to specify a different location or file name, add the -keystore parameter to the command. For example, you can add -keystore talendmdm.keystore to the command to generate a keystore file named talendmdm.keystore.
  3. Enter the keystore password as prompted, and then enter the password again to confirm it. By default, it is changeit.
  4. Enter the general information about this Certificate, such as the organization name or the city. Make sure that the information you entered matches the information expected by users who attempt to access a secure page in your application.
  5. Enter the key password as prompted, which is the password specifically for this Certificate.
    Information noteWarning: You are recommended to use the same password for the keystore file and the key.
  6. Go to your home directory and verify that a .keystore file is newly generated.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!