---
title: "Export SSL certificate"
method: GET
path: "/SSL/show_cert"
tags: ["SSL", "SSL Certificate Management"]
---

# Export SSL certificate

`GET /SSL/show_cert`

This function retrieves a certificate.

**Note:**

When you call this parameter, you **must** include either the `id` or
the `friendly_name` parameter.

**Important:**

When you disable the Calendars and Contacts, Receive Mail, Web Disk,
Webmail, **and** Web Server [roles](https://go.cpanel.net/howtouseserverprofiles#roles),
the system **disables** this function.

## Query parameters

- `friendly_name` string
- `id` string

## Response `200`

HTTP Request was successful.

- object
  - `apiversion` integer — The version of the API.
  - `func` string — The name of the method called.
  - `module` string — The name of the module called.
  - `result` object
    - `data` object
      - `cert` string, pem-certificate — The contents of the certificate.
      - `details` object — An object containing the certificate's details.
        - `domains` string[] — A list of the certificate's domains.
        - `ecdsa_curve_name` 'prime256v1' | 'secp384r1', nullable — The ECDSA curve that the certificate's key uses. * `prime256v1` * `secp384r1` * `null` — The certificate's key is **not** an ECDSA key.
        - `ecdsa_public` string, nullable — The certificate's key's ECDSA compressed public point, in hexadecimal format. * `null` — The certificate's key is **not** an ECDSA key.
        - `friendly_name` string — The certificate's friendly name.
        - `id` string — The certificate's ID.
        - `is_self_signed` 1 | 0 — Whether the certificate is self-signed. * `1` — Self-signed. * `0` — Not self-signed.
        - `issuer` object — A object that contains the issuer's details.
          - `commonName` string — The issuer's Common Name or Distinguished Name.
          - `countryName` string, ISO-3166-1 (alpha-2) — The certificate's two-letter country code.
          - `emailAddress` string, email — The issuer's email address.
          - `localityName` string — The issuer's locality or city.
          - `organizationName` string — The issuer's organization name.
          - `stateOrProvinceName` string — The issuer's state or province name.
        - `key_algorithm` 'rsaEncryption' | 'id-ecPublicKey' — The certificate's key's algorithm. * `rsaEncryption` — RSA. * `id-ecPublicKey` — ECDSA.
        - `modulus` string, nullable — The certificate's key's modulus, in hexadecimal format. * `null` — The certificate's key is **not** an RSA key.
        - `not_after` integer — The certificate's expiration date.
        - `not_before` integer — The certificate's start time.
        - `signature_algorithm` string — The certificate's OID hash algorithm signature.
        - `subject` object — An object containing the certificate's ownership details.
          - `commonName` string — The certificate's Common Name or Distinguished Name.
          - `countryName` string, ISO-3166-1 (alpha-2) — The certificate's two-letter country code.
          - `emailAddress` string, email — The certificate's email address.
          - `localityName` string — The certificate's locality or city.
          - `organizationName` string — The certificate's organization name.
          - `stateOrProvinceName` string — The certificate's state or province name.
        - `validation_type` 'ev' | 'ov' | 'dv', nullable — The certificate's validation type. * `ev` — Extended Validation. * `ov` — Organization Validation. * `dv` — Domain Validation. * `null` — The system could not parse and determine the certificate's validation type.
      - `text` string — The parsed information from the OpenSSL command-line tool.
    - `errors` string[], nullable — List of errors if the API failed.
    - `messages` string[], nullable — List of messages generated by the API.
    - `metadata` object
    - `status` 1 | 0 — * `1` — Success. * `0` — Failed. Check the `errors` field for more details.
    - `warnings` string[], nullable — List of warnings generated by the API. Warnings describe non-critical failures or other problematic conditions noted while running a API.

---

[API](https://skmtc.net/cpanel/apis/cpanel-uapi.md) · [All operations](https://skmtc.net/cpanel/apis/cpanel-uapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cpanel/cpanel-uapi/revisions/632e2f8e6d04/schema)
