Skip to main content Skip to complementary content

Generate a key

Procedure

  1. Create a folder where you want to store your Keystore.
  2. Open a terminal.
  3. Using the cd command, go to the folder you created.
  4. Enter the following command:
    <JAVA_HOME>/bin/keytool -genkey -keystore <myKeystoreName> -keyalg RSA
    Replace <JAVA_HOME> with the path to the folder where Java is installed and <myKeystoreName> with the name of your Keystore.
  5. Enter the password you want to create for your Keystore twice. Then, if needed, enter other optional information, such as your name or the name of your organization.
  6. Enter yes to confirm the information you provided.
  7. Enter the password you have previously defined.

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!