Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Keystore is used for Authentication which is the process of verifying the identity of an entity to ensure that one entity verifies the identity of another entity. Below sections illustrate 

Generating a Client Keystore

A keystore is a file that holds the public and private key pairs and certificates. The Keystore is a database of public and private keys. Java keytool is used to generate the public/private key pairs. Java keytool utility is present at %JAVA_HOME%/bin.

...

Press the Enter key. The result of the command is shown in the figure below.


Figure 4 1: Running the keytool command

...

In the above sample, "client1" is host alias and in configuring POP3 it should be provided in value for alias textbox in Signature Configuration panel.

Getting the Digital Certificate of Partner

Digital certificate contains the public key and are stored in a Truststore(a keystore file). The Truststore is a file where certificates of trusted sites/parties can be retreived for authentication. To generate a truststore, you will have to first export and save the public key of the partner you are going to communicate. Sample is provided below to add certificate to the truststore:

  1. Type in the address of the secure website on the address bar of your internet browser. As an example, you may type in https://adwords.google.com. The following dialog is displayed.


    Figure 52: Security Alert dialog
     
  2. Click the View Certificate button. The Certificate dialog is displayed.


    Figure 63: Certificate dialog
     
  3. Click the Details tab and highlight the public key.


    Figure 74: Public Key
     
  4. Next, click the Copy to File button and save the certificate file in the directory where the keystore has been generated.


    Figure 85: Certificate Export wizard
Note

The process of copying and saving the digital certificate may differ from browser to browser. The concept is however the same. In the guide we have illustrated the process on Internet Explorer.


Once you have saved the digital certificate, you are now ready to create the truststore.

Creating the Client Truststore

Perform the following procedure to create a trust store:

  1. Open the command prompt and type in the following command and press Enter:

    Your directory>%JAVA_HOME%\bin\keytool -import -alias [alias name] -file [file name.cer] -keystore [truststorename.keystore] -storepass [storepassname]

    If you want to generate the truststore in the directory D:\WorkStudio\keystore, then the command would be:

    D:\WorkStudio\keystore>%JAVA_HOME%\bin\keytool -import -alias mailserver -file googlesrv.cer -keystore truststore.keystore -storepass trustpass
  2. Next press the Enter key. The result of the command is shown in the figure below.


    Figure 96: Command Prompt

Once the keystore and the truststore have been created, you are now ready to use them in the configuration.

...

Adaptavist ThemeBuilder EngineAtlassian Confluence