Homarr
Manage trusted certificates

Ensure a named custom root CA certificate without overwriting

POST/api/certificates/root

Accept one currently valid self-signed PEM root CA (64 KiB maximum). Identical bytes are idempotent; different existing bytes return CONFLICT. Requires admin permission.

ApiKey<token>

API key which can be obtained in the Homarr administration dashboard

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/certificates/root" \  -H "Content-Type: application/json" \  -d '{    "fileName": "string",    "certificate": "string"  }'
{  "created": true,  "certificate": {    "fileName": "string",    "sha256": "string",    "fingerprint256": "string",    "ca": true,    "validFrom": "string",    "validTo": "string"  }}