Skip to content

REST API

Docs for PKI Manager 3.17.0 (released 2026-11-24), from main 4d59c30 (30 commits after the release). Page changed after 3.17.0, not in a release yet.

Source: docs/api/index.md

  • Call the API: credentials and working curl examples (they run in CI).
  • Endpoints: every operation and field, generated from the source code of the documented version.
  • Integration API: service identities, tokens and the external issuer endpoints.

Every PKI Manager instance also serves its own API description. Replace https://pki.example.com with the URL of your instance.

What Path
Swagger UI (try requests in the browser) /api/docs
OpenAPI document, JSON /api/v1/openapi.json
OpenAPI document, YAML /api/v1/openapi.yaml
Terminal window
curl -s https://pki.example.com/api/v1/openapi.json | jq '.info.title, (.paths | length)'
  • /api/v1: management REST API. Authenticate with an OIDC access token (Authorization: Bearer <jwt>), see OIDC login.
  • /api/v1/external: machine endpoints for integrations (the cert-manager issuer, SCEP, automation), authenticated with an integration token. See Integration API.
  • SSH automation endpoints use fleet tokens (pkimg_…). See the SSH API contract.
  • /trpc: the typed API used by the web UI. It is internal and can change between versions; use REST for scripts.

These paths are public on purpose. Clients and hosts must reach them to check certificates.

Path What it serves
/health, /api/v1/health Liveness of the backend
/api/docs, /api/v1/openapi.json, /api/v1/openapi.yaml The API description
/cas/<caId>.pem (also .crt, .der, .cer) A CA certificate
/crl/<caId>.crl (PEM), /crl/<caId>.der The CRL of a CA
/ssh/..., /krl/... SSH trust files and KRLs, see the SSH API contract

PKI Manager is a personal project of Oriol Rius, built for his own use. It is not a commercial product. About this project