Read system self-signed certificate

Prev Next

Reads the system self-signed certificate.

API URL

GET https://<host>/wsapis/v2.0.0/certmgmt/selfsigned

Sample curl requests

curl -kg -H "$c" "https://<host>/wsapis/v2.0.0/certmgmt/selfsigned"

Availability

This command is available on the following platforms:

  • Network Security

  • Helix Enterprise

Authentication

Standard WSAPI authentication

Response

{
    "certificate_body": "(string) <body of the certificate with EOL replaced by "\n" >",
    "certificate_name": "(string) <name given at the import time>",
    "expiration_remaining_sec": (long),
    "fingerprint": (string),
    "validity_not_after": "2021/08/19 07:54:12",
    "validity_not_before": "2020/08/19 07:54:12"
    "priv_key_present": (boolean) <if present and true means the provate key is present for this cert>,
    "httpTlsActive" : (boolean) <if present and true means the cert used for https>,
    "mtaTlsActive"  : (boolean) <if present and true means the cert used for MTA>,
 
    "issuer": {
        "cn": (string) <the full CN attribute of the certificate>,
        "common_name": (string) <simple name>,
        "country_name": (string),
        "organization_name": (string),
        "organizational_unit_name": (string),
        "state_or_province_name": (string)
    },   
    "subject": {
        //
        // Fields are same as "issuer" element above
        //
    },
}

Response mime type

application/json