# Read a domain's uploaded certificate

Source: https://openpanel.sh/docs/api/domains/read-a-domain-s-uploaded-certificate

The names, issuer and dates of the certificate uploaded for your own domain. Its private key is never returned.

`GET https://openpanel.sh/api/v1/domains/{domainId}/certificate`

## Parameters

| Name | In | Required | Description |
|---|---|---|---|
| `domainId` | path | yes |  |

## Responses

| Status | Meaning | Body |
|---|---|---|
| 200 | Read a domain's uploaded certificate | `application/json`, `Certificate` |
| 401 | No valid credential was sent. | `application/problem+json`, `Problem` |
| 403 | The credential may not do this. | `application/problem+json`, `Problem` |
| 404 | Not found, or not visible to this credential. | `application/problem+json`, `Problem` |
| 422 | The input was refused; detail says why. | `application/problem+json`, `Problem` |
| 429 | Too many requests; wait for Retry-After seconds. | `application/problem+json`, `Problem` |

## Schemas

### Certificate

```json
{
  "type": "object",
  "properties": {
    "names": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The names the certificate covers."
    },
    "issuer": {
      "type": "string"
    },
    "notBefore": {
      "type": "string",
      "format": "date-time"
    },
    "notAfter": {
      "type": "string",
      "format": "date-time"
    },
    "fingerprint": {
      "type": "string",
      "description": "SHA-256 of the certificate."
    }
  },
  "required": [
    "names",
    "issuer",
    "notBefore",
    "notAfter",
    "fingerprint"
  ]
}
```

### Problem

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "description": "A link to the error's explanation in the docs."
    },
    "title": {
      "type": "string"
    },
    "status": {
      "type": "integer"
    },
    "code": {
      "type": "string",
      "description": "Stable machine-readable code: not_found, forbidden, invalid, conflict, rate_limited, not_implemented, …"
    },
    "detail": {
      "type": "string",
      "description": "What went wrong, in a sentence written for a person."
    }
  },
  "required": [
    "type",
    "title",
    "status",
    "code",
    "detail"
  ]
}
```