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

# Export certificate signing request

`GET /SSL/show_csr`

This function retrieves a certificate signing request (CSR).

**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.

**Note:**

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

## 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
      - `csr` string — The CSR's text.
      - `details` object — An object contaning the CSR's contents.
        - `commonName` string — The CSR's Common Name or Distinguished Name.
        - `countryName` string — The CSR's [ISO-3166](https://en.wikipedia.org/wiki/ISO_3166) country code.
        - `created` integer — The CSR's creation date.
        - `domains` string[] — A list of the domains that the CSR covers.
        - `emailAddress` string, email — The CSR's email address.
        - `friendly_name` string — The CSR's friendly name.
        - `id` string — The CSR's ID.
        - `key_algorithm` string — The key algorithm that encrypts the CSR.
        - `localityName` string — The certificate's locality or city.
        - `modulus` string, nullable — The CSR's modulus.
        - `organizationName` string — The CSR's organization name.
        - `organizationalUnitName` string — The CSR's organizational unit name.
        - `stateOrProvinceName` string — The CSR's state or province name.
      - `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)
