---
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

---

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