What the agent handles
One agent binary covers all three. You deploy as many agents as your network topology requires — one per site, one per VLAN, or one per device cluster.
Prerequisites
- A CertGov account with admin or operator role
- A host with outbound HTTPS to
app.certgov.app:443(andusagent.certgov.app:8443for mTLS) - For device automation: TCP access from the agent host to the device management IP and port
Step 1 — Download the agent binary
Download the latest release directly from GitHub and install it: Linux (amd64):Step 2 — Create a service user
Step 3 — Enroll the agent
Enrollment exchanges a one-time token for a mutual-TLS certificate. The agent uses that certificate for all future connections — no API key stored in config. In CertGov: Integrations → Connector Agents → + Enroll Agent- Give the agent a label (e.g.
hq-linux,dc2-network-devices) - Click Generate Token — CertGov shows a one-time token
- On the target host, run:
/etc/certgov-agent/ and writes four files:
The enrollment token is single-use and expires in 10 minutes. If it expires before you run the command, generate a new one in the UI.
Step 4 — Review the configuration file
The enrollment command wrote a completeagent.yaml. You do not need to create it. To optionally set a log level, edit it once:
API key fallback
If your environment can’t reach the enrollment endpoint, use an API key instead:connector scope.
Step 5 — Create the systemd service
Step 6 — Verify enrollment
What to configure next
Once the agent is online:- Local application cert delivery (nginx, Apache, HAProxy, …) — see Local Application Cert Delivery
- Network device automation (F5, SBCs, gateways, …) — see Network Device Automation
- Private CA signing — assign a CA connector to this agent in Integrations → CA Connectors → Edit
- Delivering certificates whose key is in your vault — add a
vault:section toagent.yaml(agent v0.1.11+). See Keep Private Keys in Your Vault
Firewall / egress requirements
The agent requires outbound HTTPS only — no inbound ports needed.mTLS certificate rotation
The mTLS client certificate has a fixed validity period. When it nears expiry, re-runcertgov-agent enroll with the same --label to issue a new credential set. The old certificate continues to work until the new one is deployed.
To revoke a certificate immediately: Integrations → Connector Agents → Revoke Cert.
Docker
--network host is required when the agent needs to reach devices on private management VLANs.
Windows
agent.crt, agent.key, server.crt, and agent.yaml into C:\certgov-agent\. Do not recreate agent.yaml — it is written by enrollment with the correct mTLS endpoint, agent ID, and cert paths.
Run as a Windows service with NSSM: