---
title: "Set database proxy certificate"
method: POST
path: "/v1/bdbs/{uid}/certificates"
tags: ["Database"]
---

# Set database proxy certificate

`POST /v1/bdbs/{uid}/certificates`

Set or replace database proxy certificate

## Path parameters

- `uid` integer, required

## Query parameters

- `dry_run` boolean

## Request body

- BdbProxyCertificateSetRequest — Request body for setting a bdb proxy certificate
  - `cert` string, required — PEM-encoded certificate
  - `private_key` string, required — PEM-encoded private key

## Response `200`

The updated database proxy certificate

- BdbProxyCertificate — Bdb proxy certificate
  - `bdb_uid` string — BDB UID that this certificate belongs to
  - `cert` string — PEM-encoded certificate
  - `not_after` string, date-time — Date the certificate is valid until. Parsed from the certificate.
  - `not_before` string, date-time — Date the certificate is valid from. Parsed from the certificate.
  - `private_key` string — PEM-encoded private key

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `406` — Not Acceptable
- `500` — Internal Server Error

## Changes

- **2026-02-25** `a19324f2815b` — 1 info
  - endpoint added
- **2026-01-23** `9fdf3bc7ad77` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/redis/apis/redis-software-rest-api/changes/v1/bdbs/:uid/certificates/post.md)

---

[API](https://skmtc.dev/redis/apis/redis-software-rest-api.md) · [All operations](https://skmtc.dev/redis/apis/redis-software-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/redis/redis-software-rest-api/revisions/caec2005b95b/schema)
