---
title: "Return cPanel account FQDN certificate information"
method: GET
path: "/fetch_ssl_certificates_for_fqdns"
tags: ["SSL", "cPanel Account Settings"]
---

# Return cPanel account FQDN certificate information

`GET /fetch_ssl_certificates_for_fqdns`

This function retrieves the certificate information for all fully qualified domain names (FQDNs) that the account owns.

## Query parameters

- `domains` string, domain, required

## Response `200`

HTTP Request was successful.

- object
  - `data` object
    - `payload` object[] — Information about the certificate.
      - `cab` string, pem-certificate, nullable — The CA bundle's contents.
      - `created` integer — The date the certificate was created.
      - `crt` string, pem-certificate — The certificate's contents.
      - `domains` string[] — The domains that the CSR covers.
      - `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 identification.
      - `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.
      - `key` string, pem-private-key — The private key's text.
      - `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 key's modulus length. * `null` — The certificate's key is **not** an RSA key.
      - `not_after` integer — The date the certificate expired.
      - `not_before` integer — The date the certificate started.
      - `signature_algorithm` string — The certificate's OID hash algorithm signature.
      - `subject.commonName` string — The certificate's Common Name.
      - `users` string[] — A list of cPanel account owners.
      - `validation_type` 'ev' | 'ov' | 'dv', nullable — The certificate's validation type. * `ev` — Extended Validation. * `ov` — Organization Validated. * `dv` — Domain Validated. * `null` — The system could **not** parse and determine the certificate's validation type.
      - `verify_error` string — An error message that explains the reason for a verification error.
  - `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)
