System Administration Guide: Basic Administration

How to Remove a Certificate (pkgadm removecert)

  1. Become superuser or assume an equivalent role.

  2. Remove the trusted certificate from the package keystore.


    # pkgadm removecert -n "certfile"

    The -ncertfile” option specifies the alias of the user certificate/key pair or the alias of the trusted certificate.


    Note –

    View the alias names for certificates with the pkgadm listcert command.


Example—Removing a Certificate (pkgadm removecert)

The following example shows how to remove a certificate.


# pkgadm listcert
Enter Keystore Password: storepass
      Keystore Alias: GTE CyberTrust Root
         Common Name: GTE CyberTrust Root
    Certificate Type: Trusted Certificate
  Issuer Common Name: GTE CyberTrust Root
      Validity Dates:<Feb 23 23:01:00 1996 GMT>-<Feb 23 23:59:00 2006 GMT>
     MD5 Fingerprint: C4:D7:F0:B2:A3:C5:7D:61:67:F0:04:CD:43:D3:BA:58
    SHA1 Fingerprint: 90:DE:DE:9E:4C:4E:9F:6F:D8:86:17:57:9D:D3:91:BC...
# pkgadm removecert -n "GTE CyberTrust Root"
Enter Keystore Password: storepass
Successfully removed Certificate(s) with alias <GTE CyberTrust Root>