---
title: "Retrieve an Existing Certificate"
method: GET
path: "/v2/certificates/{certificate_id}"
tags: ["DigitalOcean-public.v2-new_Certificates"]
---

# Retrieve an Existing Certificate

`GET /v2/certificates/{certificate_id}`

To show information about an existing certificate, send a GET request to `/v2/certificates/$CERTIFICATE_ID`.

## Path parameters

- `certificate_id` string, uuid, required

## Response `200`

The response will be a JSON object with a `certificate` key. This will be set to an object containing the standard certificate attributes.

- object
  - `certificate` Certificate
    - `id` string, uuid — A unique ID that can be used to identify and reference a certificate.
    - `name` string — A unique human-readable name referring to a certificate.
    - `not_after` string, date-time — A time value given in ISO8601 combined date and time format that represents the certificate's expiration date.
    - `sha1_fingerprint` string — A unique identifier generated from the SHA-1 fingerprint of the certificate.
    - `created_at` string, date-time — A time value given in ISO8601 combined date and time format that represents when the certificate was created.
    - `dns_names` string[] — An array of fully qualified domain names (FQDNs) for which the certificate was issued.
    - `state` 'pending' | 'verified' | 'error' — A string representing the current state of the certificate. It may be `pending`, `verified`, or `error`.
    - `type` 'custom' | 'lets_encrypt' — A string representing the type of the certificate. The value will be `custom` for a user-uploaded certificate or `lets_encrypt` for one automatically generated with Let's Encrypt.

## Other responses

- `401` — Authentication failed due to invalid credentials.
- `404` — The resource was not found.
- `429` — The API rate limit has been exceeded.
- `500` — There was a server error.
- `default` — There was an unexpected error.

---

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