Extracting the certificate from the keystore

When using strict certificate verification, the certificate needs to be extracted from the keystore before being uploaded to the Remote Control server.

About this task

To extract the certificate complete the following steps:

Procedure

  1. Open a command-line window (Command Prompt on Windows or Terminal on Linux).
  2. Go to the Remote Control installation directory.
  3. Change to the Java runtime binary subdirectory:
    • Windows: cd [installdir]\java\jre\bin
    • Linux: cd [installdir]/java/jre/bin
  4. Run following keytool cmd according to certificate type (.p12 or .jks):
    • For .p12 certificate: keytool -exportcert -rfc -alias default -file server_exported.crt -keystore key.p12 -storetype PKCS12 -storepass TrCWebAS
    • For .jks certificate: keytool -exportcert -rfc -alias default -file server_exported.crt -keystore key.jks -storetype JKS -storepass TrCWebAS

Results

The certificate will be extracted to the server_exported.crt file.