CertCLM logoCertCLM

Agents & nodes

Pull-based agents that keep private keys on the host and deploy atomically.

Connected nodes

CertCLM agents invert the usual deployment direction: nodes pull work from the control plane over outbound HTTPS, so they work behind NAT, firewalls, and in networks where nothing can connect inbound.

The security model

Enroll and run

  1. Edge Nodes → Add Node — name it, copy the issued token.
  2. On the host:
CERTCLM_NODE_TOKEN=<node-token> ./certclm-agent \
  --server https://certclm.example.com \
  --name edge-01 \
  --ca /etc/certclm/server-ca.pem \
  --interval 10s

Flags: --server, --name, --interval (poll), --ca (pinning), --insecure (dev). Pass the token via CERTCLM_NODE_TOKEN (or CERTCLM_NODE_NAME for the name) rather than --token, which is still accepted but visible in ps output. Under systemd, see contrib/certclm-agent.service.

Deploying a certificate

On the certificate row click Deploy, choose the node, and pick a target preset or write paths manually:

Preset Certificate path Post-hook
nginx /etc/nginx/ssl/tls.crt nginx -t && nginx -s reload
Angie /etc/angie/ssl/tls.crt angie -t && angie -s reload
Apache /etc/apache2/ssl/tls.crt apachectl configtest && apachectl graceful
HAProxy /etc/haproxy/certs/tls.crt + .key concatenates into tls.pem, then set ssl cert on the stats socket (runtime update — no restart), falling back to systemctl reload
Custom your paths your hook — e.g. docker restart for a container with a bind-mounted cert dir

The agent writes cert+key atomically (temp file + rename), runs the post-hook, and rolls back to the previous files if the hook fails — a broken config can't take the site down. HAProxy additionally pushes the cert into the running process over its stats socket, so no reload/connection drop is needed.

Deploy certificate dialog

What the agent polls

Deployment tasks arrive via GET /api/v1/agent/tasks (agent-scoped auth); the agent reports status back per task. Renewals automatically re-deploy to every node bound to the certificate — after the first setup, the loop is fully unattended.