> Markdown version of https://tuna.am/en/docs/api/domain-tls-certificate/. Documentation index: [llms.txt](https://tuna.am/en/llms.txt), full text in one file: [llms-full.txt](https://tuna.am/en/llms-full.txt). Any page is available as Markdown: append `.md` to its URL without the trailing slash.

# Get the TLS certificate of a domain

get`/v1/domains/{id}/tls_certificate`

## Request

### Authorization

* **Authorization**stringheaderrequired

  Key in the format `Bearer <API-key>`. Create a key on the [API keys](https://my.tuna.am/api_keys) page.

### Path Parameters

* **id** integer\<int64>required

### Response

200application/json

* **certificate_pem**string

  Certificate

  **Example:&#x20;**`-----BEGIN CERTIFICATE-----`

  **id**integer\<int64>

  Certificate ID

  **Example:&#x20;**`42`

  **not_after**string\<date-time>

  Validity end date

  **not_before**string\<date-time>

  Validity start date

  **private_key_pem**string

  Private key

  **Example:&#x20;**`-----BEGIN PRIVATE KEY-----`

  **serial_number**string

  Description

  **Example:&#x20;**`04:9F:3A:2B:1C:8E`

  **subject_alternative_names**string\[]

  AltNames (alternative names): domains and subdomains

  **subject_common_name**string

  CN (common name) of the domain

  **Example:&#x20;**`demo-app.tuna.am`
