This is the single page for every AgenShield certificate symptom. Find yours in
the table, then read that section.
The two commands, if you already know what you are doing
Check (if it reportsCSSMERR_TP_NOT_TRUSTED, run it again with -p ssl added
before concluding anything — see below):
First: check what state you are in
Run this in Terminal. It is read-only and safe.
If you saw
CSSMERR_TP_NOT_TRUSTED, check TLS trust specifically:
- It reports
...certificate verification successful: the certificate is trusted for exactly what AgenShield needs. This is how most MDM certificate profiles install it, and nothing needs fixing. On2026.9.0and earlier the setup card can still show for this form; from2026.9.1it is recognised. - It also reports
CSSMERR_TP_NOT_TRUSTED: the certificate exists but is not trusted. Go to Certificate not trusted.
Certificate not trusted
What this means
The certificate was created on this Mac. What did not happen is the second half — recording it as trusted in the system keychain, which needs an administrator password. Until that completes:- Encrypted (HTTPS) traffic is not inspected. Network observation runs degraded, and AgenShield suspends inspection rather than interfering with connections.
- Everything else is unaffected. The security and network extensions keep enforcing, your organization’s policy keeps syncing, and command and file activity keeps being recorded.
The most common cause: nobody was at the keyboard
If AgenShield was installed by your IT team without anyone signed in — a zero-touch deployment, or an install that ran overnight — the Mac was almost certainly at the login screen or locked. The certificate step needs the Mac unlocked, because it needs a user session and an administrator password. It cannot complete on a locked Mac; it waits for someone to unlock. If that describes your Mac, unlock it and sign in. That lets the step proceed — but it does not finish on its own: macOS still has to ask for an administrator password, and someone has to approve that prompt. The setup card clears only once AgenShield has confirmed the certificate is trusted — which is after the prompt is approved, not after the unlock.How to fix it
1
Use the menu bar action (preferred)
Open the AgenShield menu bar item and choose Trust Certificate, then
enter your administrator password when macOS asks.This is the supported path: it keeps the app’s own state in step, and the
setup card clears on its own once it succeeds.
2
If the action is missing or the prompt never appears, run it yourself
Copy and paste both lines. The first asks macOS to trust the certificate and
will prompt for your password; the second confirms it worked.Expect
...certificate verification successful from the second command.What this command does, so you can decide with your eyes open. It marks
the AgenShield certificate — the one already on this Mac at the path shown —
as a trusted root, which is what lets AgenShield inspect encrypted traffic.
It is the same operation the Trust Certificate menu action performs;
running it by hand only removes AgenShield from the middle of it. It grants
nothing to any other certificate, and it can be undone at any time with
sudo security remove-trusted-cert -d ~/.agenshield/mitm-ca.pem.3
Reopen the apps that were failing
An AI agent that already marked a server unreachable will not retry on its
own. Quit it fully and start it again.
Administrator rights are needed only to approve the prompt. AgenShield
tries the non-interactive route first and, where that succeeds, no password is
asked for at all — so a standard-user account is not automatically blocked
here.When the prompt is required and your account is a standard user, someone with
administrator rights has to approve it. Fleets can remove the per-device step
entirely by distributing the certificate through MDM — see
MDM deployment.
The command worked, but the warning is still showing
This is expected on2026.9.0 and earlier, and it does not mean the fix
failed. Confirm the fix first:
2026.9.1 the service re-checks on its own — within about 30 seconds of a
manual fix — so this step is not needed.
If it comes back
- You dismissed the password prompt once. AgenShield deliberately does not re-ask immediately — repeatedly prompting for a password nobody wanted to give is worse than waiting. Use Trust Certificate from the menu bar when you are ready, or run the command above.
- It reappears after every update. See Password prompt after an update.
- It reappears on many Macs at once. Ask your IT team whether your organization can distribute a company-wide certificate through MDM, which removes the per-device step entirely. See MDM deployment.
Seeing it across the fleet
In the Frontegg Portal, Devices → the Setup filter narrows the list to every device still waiting on the certificate, so you can tell one stuck Mac from a rollout-wide gap. See Fleet setup status.Password prompt after an update
What you are seeing
Shortly after AgenShield updates itself, macOS shows its standard administrator dialog asking to modify the system certificate trust settings. It may appear while you are working, and again on the next update.What it means
In affected versions this prompt could appear even when the certificate had not changed at all. Two internal checks ran at the same moment and interfered with each other; one briefly could not confirm the certificate’s status, and AgenShield responded by asking macOS to re-apply trust — which needs your password. Your protection was not affected. The certificate was already installed and already trusted throughout. Network inspection kept working whether you entered your password or dismissed the dialog.A related case: the update SAYS the certificate is not trusted
In2026.8.4 and earlier, an update could finish by warning that the
certificate was not trusted and that inspected connections would fail — even
though it had been installed and trusted seconds earlier. Two checks that run at
the end of an update could interfere with each other, and the second reported a
failure that had not happened.
The warning was cosmetic. Network inspection kept working normally.
To confirm your own Mac is fine, run the
check command. If it reports success, the
warning was the false one and there is nothing to do.
What to do
1
You can safely dismiss it
Click Cancel. Nothing breaks — AgenShield will not re-show it in a loop, and
inspection continues normally.
2
Entering your password is also fine
Approving simply re-applies trust settings that were already in place.
3
Update to the fixed version
On
2026.8.5 or later the prompt stops appearing for a certificate that has
not changed.When a prompt IS expected
A genuine request for your password is normal in one case: when the certificate has actually been renewed or replaced. macOS treats a new certificate as new, and approving it once is required. That is a rare, deliberate event — not something that should accompany routine updates.Expired certificate errors
What you are seeing
An AI agent (an AI coding assistant, an MCP client, or similar) fails to connect over HTTPS with a certificate-expired error such asCERT_HAS_EXPIRED.
Typically it fails for every inspected destination at once, while the same
sites open normally in a browser or in a tool that is not being inspected.
What is actually happening
For the connections it inspects, AgenShield presents its own certificate for the destination, issued under the AgenShield root your organization installed. Those per-site certificates are short-lived and normally re-issued automatically. In affected versions the background service could keep re-using a previously issued per-site certificate after it had expired. After about a week of continuous uptime those certificates aged out, so the agent received an expired certificate for every inspected destination. Two things confirm this is the cause rather than a problem with the destination:- The destination’s own certificate is valid — the site opens fine in a browser or in any tool AgenShield is not inspecting.
- The AgenShield root certificate is valid — it has a normal multi-month lifetime and is unchanged. The check command confirms this.
How to recover now
Restart the background service, or restart the machine. That discards the stored per-site certificates, and the next connection is issued a fresh one, so inspected connections work again immediately. This is temporary — on an affected version the problem can return after about a week of continuous uptime. Updating is the durable fix.
AgenShield now checks a stored per-site certificate’s expiry before re-using it
and issues a fresh one instead of presenting an expired certificate. No
configuration change is needed.
When to escalate
Collect a diagnostics bundle and contact support if:~/.agenshield/mitm-ca.pemdoes not exist even after the Mac has been unlocked and signed in for a few minutes;verify-certstill fails right after theadd-trusted-certcommand reports success;- the setup step clears and then returns without an update having been installed;
- the prompt still appears on every update on
2026.8.5or later; - connections still fail with a certificate-expired error after updating and restarting.