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

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
- The agent generates the private key on the host and submits only a CSR — the server never sees, stores or transmits the key.
- Agents authenticate with a per-node token; each node is enrolled once from the console.
- Control-plane TLS is verified with
--ca <pem>pinning (or--insecurefor development only). - Agent-held certificates can't be exported or pushed — that would break the keys-stay-on-node guarantee.
Enroll and run
- Edge Nodes → Add Node — name it, copy the issued token.
- 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 10sFlags: --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.

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.