Skip to main content
dnz ca matches Proxy → Certificates → Private CA in the dashboard: DNZ’s own certificate authority for internal names. For what it does, see Private certificate authority.

Permissions

  • Making, changing, exporting and importing the CA, and downloading a certificate with its private key, are for superadmins.
  • Issuing, renewing, revoking and downloading certificates (without the key) need Manage proxies (proxy.manage).
  • A DNZ secondary following a primary refuses changes: make and change the CA on the primary.

The CA

init and edit take the same flags; a field left out keeps its value (for init, the suggested one): A new issuer, key type, root validity, intermediate or name constraints make a new version: edit says so and asks first. Certificates are then issued again from it, and devices need the new root. See Changing the CA: versions.

Export and import

Use them to back the CA up, or to carry it to a new primary after a take over.

The root devices install

The steps per platform are in Trusting the root on devices.

Certificates

  • list shows the certificates the CA signed (routes’, issued by hand, DNZ’s own), a page at a time. --search is part of a name, a person’s name or e-mail, or a serial; --state is valid, failed, pending or revoked.
  • issue takes host names (wildcards like *.lab.internal) and IP addresses, the first being the main one. --client makes a client certificate (mTLS) for a person or device: give --cn and/or --email. --uses is server, client or both. The subject flags (--cn, --org, --unit, --country, --state, --locality, --email) default to the CA’s defaults for new certificates.
  • revoke --reason is unspecified (default), key_compromise, superseded, cessation_of_operation or affiliation_changed.

ACME

The CA’s ACME server: certbot, lego, Caddy, Traefik and cert-manager ask it for certificates themselves. Off by default. Settings, keys and allow lists are for superadmins; proxy managers read.
dnz ca list lists what they got with the rest (FOR: acme); dnz ca revoke works on it. DNZ holds no key for those, so reissue and download --key are refused.

Where the CA is used

A route asks for the CA with the resolver private-ca. Internal names on the auto resolver get a certificate from it by themselves. See Certificates for DNZ Proxy and Encrypted DNS.