Previous Topic: How to Add a Certificate to the Client Keystore on the AgentNext Topic: Import a Certificate to the Client Keystore on the Agent


Export the Certificate from the Server Keystore

You can export the certificate from the server keystore using the keytool utility that is provided with the JRE.

Note: Add the keytool path to your path variable.

Follow these steps:

  1. Open a PASE terminal session.
  2. Change to the directory that contains the agent program files.
  3. Enter the following command:
    keytool -export -file key.cer -keystore serverkeystore
    

    Note: To export the certificate that is generated with an alias, include the same alias in the export command. For example, suppose that a certificate was generated with the following command:

    keytool -genkey -alias agent -keystore ./serverkeystore
    

    To export that certificate, use the following command:

    keytool -export -alias agent -file key.cer -keystore serverkeystore
    
  4. Follow the prompts.

    The server keystore certificate is exported.

Example: Export the Certificate from the Server Keystore

The following example shows sample keytool prompts and values:

/home/ESP_System_Agent_R7>keytool -export -file key.cer -keystore serverkeystore
Enter keystore password:  654321
Certificate stored in file <key.cer>