Use the information in this topic to create a KeyStore, create a custom self-signed certificate, and import the certificate.
Note
The security protocol used for encryption and decryption of communication between the Collection Station and the Collection Agent is Transport Layer Security (TLS).
To create a KeySTore in the JKS format, you need to run the following keytool command.
keytool -keystore <jksFileName> -genkey -alias <aliasName> -validity <numberOfDays> -keyalg <encryptionType>
keytool -keystore bmcitda.jks -genkey -alias bmcitda -validity 365 -keyalg RSA
In the preceding command, the following definitions apply:
<jksFileName>
refers to the name of the KeyStore file (.jks format).<aliasName>
refers to the alias that you want to use while generating the KeyStore. <numberOfDays>
refers to the number of days for which the KeyStore must remain valid.<encryptionType>
refers to encryption type that you want to use while generating the KeyStore.Recommendation
BMC recommends that you create a separate directory in the following location and copy the KeyStore to that directory.
After you create the KeyStore, you need to perform the following additional steps:
To create a custom self-signed certificate, you need to run the following keytool command.
keytool -export -alias <aliasName> -file <name> -keystore <keystoreFileName>
keytool -export -alias bmcitda -file bmcitda.cer -keystore bmcitda
In the preceding command, the following definitions apply:
<aliasName>
refers to the alias used while generating the KeyStore.<name>
refers to the name with which the certificate file must be created.<keystoreFileName>
refers to the KeyStore file name (generated in the JKS format).To import a self-signed certificate (default or custom) into a JRE location, you need to run the following command. The JRE location might differ based on the channel for which you are trying to configure security. For more information, see Configuring a secured connection.
keytool -importcert -keystore <jreLocation> -file <certificateFileName> -alias <aliasName> -storepass <password>
keytool -importcert -keystore ../../jre/lib/security/cacerts -file ../../tomcat/conf/bmcitda.cer -alias bmcitda -storepass changeit
In the preceding command, the following definitions apply:
<jreLocation>
refers to location where you need to import the certificate. <certificateFileName>
refers to name of the certificate file that you want to import. Optionally, you can also include the location path with the file name.<aliasName>
refers to the alias used while generating the KeyStore.<password>
refers to the KeyStore password (default: changeit).