Configuring Java CAPS for SSL Support

Generating a Key Pair and a Self-Signed Certificate

The genkey command of the keytool program enables you to generate a key pair.

ProcedureTo Generate a Key Pair and a Self-Signed Certificate

  1. Navigate to the JAVA_HOME/bin directory, where JAVA_HOME is the installation directory of the Java SDK.

  2. Enter the following command:


    keytool -genkey -keyalg RSA -alias CAPS -keystore keystore_filename
  3. When prompted, enter your keystore password.

  4. When prompted, enter the Distinguished Name information.

    1. What is your first and last name?


      Caution – Caution –

      When prompted for your first and last name, make sure you enter the machine hostname.


    2. What is the name of your organizational unit?

    3. What is the name of your organization?

    4. What is the name of your City or Locality?

    5. What is the name of your State or Province?

    6. What is the two-letter country code for this unit?

    7. Is CN=first_and_last_name, OU=organizational_unit, O=organization_name, L=city_or_locality, ST=state_or_province, C=two_letter_country_code correct?

  5. When prompted, enter a password for the keystore entry. If the password is same as the keystore password, press Return.


    Note –

    If you want to use a keystore, it is recommended to use the sbyn.keystore file in the JavaCAPS-install-dir/repository/repository/server directory.