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:
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
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>
|
Copyright © 2014 CA.
All rights reserved.
|
|