---
title: "Upload your own certificate to the server."
method: POST
path: "/custom-cert"
tags: ["Custom Certificate"]
---

# Upload your own certificate to the server.

`POST /custom-cert`

Uploads the certificate to the servers in your cluster.

**Note:** The listeners on your servers will be restarted in order to apply the changes. This will close your current connections.

## Request body

- CustomCert — Schema for uploading a custom SSL/TLS certificate, including the key and CA chain.
  - `sni_hosts` union, required — Hostname(s) to serve this certificate for using Server Name Indication (SNI). Use an array when configuring multiple hostnames. A comma or space separated string is also accepted for backwards compatibility. Each requested hostname must be covered by the certificate common name or subject alternative names. Hostnames must be valid ASCII DNS hostnames. Wildcard certificates are accepted, but wildcard hostnames are not valid SNI hostnames; list each hostname explicitly.
    - string[]
    - string
  - `private_key` string, textarea, required — The PEM-encoded private key corresponding to the certificate.
  - `cert` string, textarea, required — The PEM-encoded server certificate.
  - `ca` string, textarea, required — The PEM-encoded Certificate Authority (CA).

## Response `202`

Certificate upload started.

- object
  - `job_id` string, uuid — Job ID to track the certificate upload.
  - `message` string

## Other responses

- `400` — Error message

---

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