# urbestack-cert-custom-set

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 command, run as root in the server shell.

## Usage

```
urbestack-cert-custom-set --name DOMAIN --cert FILE --key FILE [--chain FILE]
```

## Description

Installs a custom TLS certificate for a domain. Supply absolute paths to the PEM files for --cert, --key and, optionally, --chain. The paths must be free of .. components. The private key must match the certificate, and the certificate must cover the domain and still be valid.

UrbeStack warns if the certificate misses other configured names. It accepts self-signed certificates with a warning. For other certificates, a missing chain or a chain that fails verification produces a warning and installation continues.

The domain switches to custom mode and is excluded from automatic renewal. Use urbestack-cert-del to remove the certificate.

## Same in the API

- [PUT /domains/{name}/certificate/custom](https://urbestack.com/docs/api/put-domains-name-certificate-custom.md): Install a custom TLS certificate for a domain

## Command family: cert

- [urbestack-cert-del](https://urbestack.com/docs/commands/urbestack-cert-del.md): Removes a domain's TLS certificate and private key, whether issued through UrbeStack or installed as a custom certificate.
- [urbestack-cert-issue](https://urbestack.com/docs/commands/urbestack-cert-issue.md): Obtains and installs a TLS certificate from the ACME directory configured in ssl.acme_directory, which defaults to Let's Encrypt at https://acme-v02.api.letsencrypt.org/directory.
- [urbestack-cert-list](https://urbestack.com/docs/commands/urbestack-cert-list.md): Lists the server's TLS certificates with their domains, owners, packages, and domain certificate modes (auto, none or custom).
- [urbestack-cert-renew](https://urbestack.com/docs/commands/urbestack-cert-renew.md): Renews due TLS certificates for active domains in auto mode and obtains certificates for those that lack one.
