Generating a Self-Signed SSL Certificate

FlexNet Code Insight 6.14.0

The following procedure creates both a self-signed SSL certificate (and its private key) and the keystore in which to store the certificate. Consult the Certificate Authority for any specific instructions.

To create a self-signed SSL certificate and store it in a keystore, do the following:

1. From DOS or Linux, enter the following command:

keytool -genkey -keyalg RSA -sigalg SHA256withRSA -alias myKey -keypass password -keystore myKeystore.jks -storepass password -validity 3600 -keysize 2048

where you provide the following details specified to create the keystore that will store the certificate:

myKey—An alias for the private key you are creating.
myKeystore—A file name for the keystore you are creating.
password—A password used for both the private key and keystore. Enter this value for both ‑keypass and -storepass.
2. When prompted with “What is your first and last name?”, enter the fully qualified hostname for the server, such as myserver.mycompany.com.
3. Copy the keystore to the fnciInstallPath/tomcat directory. (It is configured in the server.xml file, as described in Enabling an HTTPS Connection.)