API referenceSections

Choose the certificate (the panel's database CA, or on the panel's own machine the panel's certificate) and whether remote users must use TLS; issues it

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

PUT /api/v1/tenants/{tid}/servers/{id}/database-tls

Choose the certificate (the panel's database CA, or on the panel's own machine the panel's certificate) and whether remote users must use TLS; issues it (ADR 0181)

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
idpathstringrequired

Request body

required

Content type: application/json

object
  • source string required
    Allowed values: "panel_ca" "panel_certificate"
  • hostnames array<string> optional

    DNS names or IP addresses customers connect to; the server's own are added

  • require_remote boolean optional
Example
{
  "source": "panel_ca",
  "hostnames": [
    "string"
  ],
  "require_remote": true
}

Responses

200 Issuing

Content type: application/json

  • server_id string required
  • tenant_id string required
  • source string required
    Allowed values: "panel_ca" "panel_certificate"
  • hostnames array<string> required
  • require_remote boolean required
  • state string required

    preparing, applying, active, failed; empty before it is configured

  • job_id string required
  • fingerprint string required

    SHA-256 of the served certificate

  • not_after string (date-time) | null required
  • applied_engines array<string> required
  • error_code string required
  • attempt integer required
  • updated_at string (date-time) required
  • configured boolean required
  • ca_pem string required

    The panel's database CA, for clients to verify against

  • panel_cert_available boolean required
Example
{
  "server_id": "string",
  "tenant_id": "string",
  "source": "panel_ca",
  "hostnames": [
    "string"
  ],
  "require_remote": true,
  "state": "string",
  "job_id": "string",
  "fingerprint": "string",
  "not_after": "2026-01-01T00:00:00Z",
  "applied_engines": [
    "string"
  ],
  "error_code": "string",
  "attempt": 0,
  "updated_at": "2026-01-01T00:00:00Z",
  "configured": true,
  "ca_pem": "string",
  "panel_cert_available": true
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required