---
title: "Get Pro database TLS certificate"
method: GET
path: "/v1/subscriptions/{subscriptionId}/databases/{databaseId}/certificate"
tags: ["Databases - Pro"]
---

# Get Pro database TLS certificate

`GET /v1/subscriptions/{subscriptionId}/databases/{databaseId}/certificate`

Gets the X.509 PEM (base64) encoded server certificate for TLS connection to the database. Requires 'enableTLS' to be 'true' for the database.

## Path parameters

- `subscriptionId` integer, required
- `databaseId` integer, required

## Response `200`

OK

- DatabaseCertificate — Database certificate
  - `publicCertificatePEMString` string — An X.509 PEM (base64) encoded server certificate with new line characters replaced by '\n'.

## Other responses

- `400` — Bad Request - The server cannot process the request due to something that is perceived to be a client error
- `401` — Unauthorized - Authentication failed for requested resource
- `403` — Forbidden - Not allowed to access requested resource (primarily due to client source IP API Key restrictions)
- `404` — Not Found - The resource you were trying to reach was not found or does not exist
- `412` — Precondition Failed - Feature flag for this flow is off
- `429` — Too Many Requests - Too many resources are concurrently created / updated / deleted in the account. Please re-submit API requests after resource changes are completed)
- `500` — Internal system error - If this error persists, please contact customer support
- `503` — Service Unavailable - Server is temporarily unable to handle the request, please try again later. If this error persists, please contact customer support

---

[API](https://skmtc.net/redis/apis/redis-cloud-api.md) · [All operations](https://skmtc.net/redis/apis/redis-cloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/redis/redis-cloud-api/versions/01eef7f3c69f/schema)
