Viewing contents of the certificate

Last Updated : Sep 15, 2014 |

Before you begin

Install the tool that you want to use to view the keystore.

About this task

You can view the contents of the certificate in a keystore by using any common tool, such as keytool.

Procedure

  1. Start an SSH session.
  2. To view the contents of the certificate in a keystore, type the following command:
    keytool -list -keystore <keystore> -storepass <keystorepassword> -storetype PKCS12 -v

    Where:

    • keystore is the path to the keystore.

    • keystorepassword is the password of the keystore

    • PKCS12 is the format of the keystore. Use JKS for the JKS format keystores.

  3. To view the contents of a PEM certificate, type the following command:
    openssl x509 -in <certificate> -text noout

    Where: certificate is the path to the PEM certificate.