Importing the SSL Certificate into the JRE of the eG Agent
To achieve this, do the following:
- Login to the eG agent host.
Open the Shell prompt and set the path:
Then, using the keytool command, import the manager certificate to the JRE of the eG agent. A sample command has been given below:
keytool -import -file C:\tmp\eGCert.cer -alias egcert -keystore <EG_INSTALL_DIR>\jre\lib\security\cacerts
The parameters expected by this command are:
-alias : an alias name for the certificate being imported; make sure that you provide the same alias name that you provided while generating the keystore file (see Generating the Keystore File or Generating a Keystore File
section, depending upon whether the certificate is a self-signed certificate or a certificate obtained from a valid certificate authority). If you are extracting the SSL certificate from the default keystore that is bundled with the eG manager, then first determine the alias name using which the keystore file was created. For this, from the <EG_INSTALL_DIR>\java\jdk\bin directory, run the following command:
keytool –list –v –keystore egmanager.bin
This command will prompt for the keystore passphrase. Type eginnovations and press Enter. This will provide the details of the default keystore. From these details, you can infer the Aliasname.
- -file : the full path to the .cer file that was created in the Extracting the SSL Certificate to a Certificate File
- -keystore : the keystore file that the JVM used by the agent checks for trusted certificates; specify the same file name that you used to store the key (see Section Generating the Keystore File or Generating a Keystore File of this document, depending upon whether the certificate is a self-signed certificate or a certificate obtained from a valid certificate authority). For the default certificate bundled with the eG manager, the –keystore should be egmanager.bin.This command, upon execution, will request for the keystore password. Provide the same keystore password you provided when generating the keystore file (see Generating the Keystore File
section, as the case may be). For the default certificate bundled with the eG manager, the passwordshould be eginnovations.
- Finally, the command will request your confirmation to make the imported certificate a trusted one. Enter yes to trust the certificate.
If the processing was successful, then a message stating that the “Certificate was added to keystore” will appear. Figure 1 depicts the processing explained above.
- Now, start the agent.