06.05.2013 Views

The eG Installation Guide - eG Innovations

The eG Installation Guide - eG Innovations

The eG Installation Guide - eG Innovations

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Installing and Configuring on Windows Environments<br />

3.4.2 Extracting the Certificate to a Certificate File<br />

To SSL-enable the <strong>eG</strong> agent-manager communication, you need to import the SSL certificate you<br />

generate into the JRE of the <strong>eG</strong> agent. For this, you first need to extract the certificate from the<br />

keystore file and export it to a certificate file. To achieve this, do the following:<br />

1. Login to the <strong>eG</strong> manager and go to the command prompt.<br />

2. Execute the following commands one after another:<br />

cd %JAVA_HOME%\bin<br />

keytool -export -alias egitlab1 -keystore .keystore –storepass mykey -keypass mykey -file<br />

C:\tmp\<strong>eG</strong>Cert.cer<br />

<strong>The</strong> text in Bold in the above command line indicates those inputs that can change according to<br />

the requirements of your environment. <strong>The</strong>se inputs have been described below:<br />

-alias : the alias name of the certificate being extracted; make sure that you provide the same alias<br />

name that you provided while generating the keystore file (see Section 3.4.1 of this document).<br />

-keypass : the password used to protect the key that was generated; make sure that you provide<br />

the same password that you provided while generating the keystore file (see Section 3.4.1 of this document).<br />

Also, note that -storepass and -keypass should be the same.<br />

-keystore : Provide the name of the keystore file in which the key has been stored; specify the<br />

same file name that you used to store the key (see Section 3.4.1 of this document).<br />

-file : Specify the full path to and the name of the certificate file (.cer) to which the certificate<br />

has to be exported<br />

3. Once the keytool command successfully executes, the certificate file will be created.<br />

3.4.3 Requesting a Certificate Authority for a Valid Certificate<br />

Self-signed certificates are useful in environments where 'security' is not a priority. In highly secure<br />

environments, especially where the <strong>eG</strong> manager is to be frequently accessed via the public internet,<br />

using a self-signed certificate may not be preferred. In such a case, you can request for a valid<br />

certificate from a certificate authority. <strong>The</strong> procedure for this is as follows:<br />

4. Login to the <strong>eG</strong> manager and go to the Windows command prompt.<br />

Execute the following commands one after another:<br />

cd %JAVA_HOME%\bin<br />

keytool -certreq -alias egitlab1 -file -keypass mykey -keystore<br />

.keystore –storepass mykey<br />

<strong>The</strong> text in Bold in the above command line indicates those inputs that can change according to<br />

the requirements of your environment. <strong>The</strong>se inputs have been described below:<br />

237

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!