---
title: "Return system services and associated certificates"
method: GET
path: "/fetch_service_ssl_components"
tags: ["SSL", "SSL Server Settings"]
---

# Return system services and associated certificates

`GET /fetch_service_ssl_components`

This function lists the system's services and their associated certificates.

## Response `200`

HTTP Request was successful.

- object
  - `data` object
    - `services` object[] — An array of objects containing the certificate information for each service.
      - `cabundle` string — The Certificate Authority (CA) information. This function returns an empty string if no CA bundle exists for the certificate.
      - `certificate` string, pem-certificate — The SSL certificate's contents.
      - `certificate_info` object — An object containing certificate information data.
        - `domains` string[] — The domains that correspond to the certificate.
        - `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.
        - `is_self_signed` 1 | 0 — Whether the certificate is self-signed. * `1` — Self-signed. * `0` — **Not** self-signed.
        - `issuer.commonName` string — The certificate's Common Name.
        - `issuer.organizationName` string — The certificate's Organization Name.
        - `issuer_text` string — Information about the issuer.
        - `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.
        - `modulus_length` integer, nullable — The certificate's modulus size. * `null` — The certificate's key is **not** an RSA key.
        - `not_after` integer — The date the certificate expires.
        - `not_before` integer — The certificate's validation date.
      - `key` string, pem-private-key — The certificate's private key.
      - `service` 'ftp' | 'exim' | 'dovecot' | 'cpanel' — The service that the certificate corresponds to. * `ftp` * `exim` * `dovecot` * `cpanel`
  - `metadata` object
    - `command` string — The method name called.
    - `reason` string — The reason the API function failed when the `metadata.result` field is `0`. This field may display a success message when a function succeeds.
    - `result` 1 | 0 — * `1` — Success. * `0` — Failed. Check the `reason` field for more details.
    - `version` integer — The version of the API function.

---

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