Previous Topic: Obtain a Digital CertificateNext 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. Complete the prompts as required and click Enter.
  4. Place your certificate in the following folder:
    gm_directory\eurekify-jboss\server\eurekify\conf
    

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