---
title: "Retrieve a certificate private key"
method: GET
path: "/{account}/domains/{domain}/certificates/{certificate}/private_key"
tags: ["domain certificates"]
---

# Retrieve a certificate private key

`GET /{account}/domains/{domain}/certificates/{certificate}/private_key`

Gets the PEM-encoded certificate private key.

## Path parameters

- `account` integer, required
- `domain` string, required
- `certificate` integer, required

## Response `200`

Successfully retrieved the private key for an issued certificate.

- object
  - `data` CertificatePrivateKey, required
    - `private_key` string, required

## Other responses

- `404` — The requested resource doesn't exist.

## Changes

- **2025-07-11** (v2) `06780be0ef17` — 3 info
  - the response property `data` became required for the status `200`
  - the response property `data/private_key` became required for the status `200`
  - the response property `message` became required for the status `404`
- **2023-07-18** (v2) `c8591dcf8c29` — 3 breaking
  - the response property `data` became optional for the status `200`
  - the response property `data/private_key` became optional for the status `200`
  - the response property `message` became optional for the status `404`

[Change history](https://skmtc.dev/dnsimple/apis/dnsimple-api/changes/:account/domains/:domain/certificates/:certificate/private_key/get.md)

---

[API](https://skmtc.dev/dnsimple/apis/dnsimple-api.md) · [All operations](https://skmtc.dev/dnsimple/apis/dnsimple-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dnsimple/apis/dnsimple-api/revisions/faec8b49cc03?raw)
