Previous Topic: Obtain a Digital Certificate

Next Topic: Add the Digital Certificate to the Keystore


Example: Create a Self-Signed Certificate

This example shows you how to create a self-signed certificate.

Important! Regarding a self-signed certificate, trusting the issuer is problematic. In a production environment, use a certificate issued by a trusted Certificate Authority.

Follow these steps:

  1. Open a Command Prompt window.
  2. Enter the following command:
    keytool -genkey -alias name -keyalg RSA -keystore server.keystore
    
    -alias name

    Defines the alias to use for adding an entry to the keystore.

    -keyalg

    Specifies the algorithm to use to generate the key pair.

    The keytool utility starts.

  3. Place your certificate in the following folder:
    gm_directory\eurekify-jboss\server\eurekify\conf
    
  4. Complete the prompts as required and press Enter.

    A server.keystore file is created and positioned in the specified folder.