---
title: "Generate Let's Encrypt certificates"
method: POST
path: "/custom-domain"
tags: ["Custom Domain"]
---

# Generate Let's Encrypt certificates

`POST /custom-domain`

Generates and installs a Let's Encrypt certificate on the cluster as SNI with your custom domain.
This requires that your provided SNI host points to the CloudAMQP instance hostname. Otherwise the generation and renewal of the certificate will fail.

**Note:** When creating a custom domain, the listeners on your servers will be restarted in order to apply the changes. This will close your current connections.

## Request body

- object
  - `hostname` string, required — The custom hostname. This must be a valid ASCII DNS hostname, and its DNS record must point to the CloudAMQP instance hostname.

## Response `200`

Custom domain configured successfully

---

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