Fortinet FortiClient & FortiGate (Fortinet_CA_SSL) Inspection on Mac: Check & Bypass

Check whether Fortinet FortiGate or FortiClient (Fortinet_CA_SSL) is performing SSL Deep Inspection on your Mac vs. Certificate Inspection only, and compare per-domain SWG bypass, FortiGate exemptions, and CA trust.

SWG bar · Updated

To check whether Fortinet FortiGate / FortiProxy / FortiClient is actively decrypting HTTPS traffic on your Mac, open SWG bar → Overview (or run swgbar overview) and look for a Domain interception ratio above 0% with Fortinet_CA_SSL (or your organization’s custom FortiGate Deep Inspection CA) listed under MITM certificates. To bypass Fortinet SSL Deep Inspection for a single broken hostname on an authorized Mac, open SWG bar → Domains, select the hostname, and enable Bypass SWG (swgbar bypass enable <domain>).

Unlike purely cloud-hosted gateways, Fortinet environments on macOS commonly combine FortiClient VPN / ZTNA / SASE with either SSL Certificate Inspection (metadata only) or full SSL Deep Inspection (HTTPS break-and-inspect). Knowing which mode is active saves hours of debugging broken developer tools.

1. Distinguish FortiGate Certificate Inspection from SSL Deep Inspection

  • SSL Certificate Inspection (no HTTPS decryption): FortiGate reads only the TLS SNI and server certificate header to enforce URL filtering, leaving the origin server’s public certificate chain intact. SWG bar shows Public trust path.
  • SSL Deep Inspection (Fortinet_CA_SSL — active HTTPS decryption): FortiGate or FortiSASE terminates TLS, inspects decrypted payloads, and re-signs responses using Fortinet_CA_SSL (or a corporate subordinate CA) pushed to macOS System Keychain via MDM. SWG bar flags affected domains as Confirmed intercepted.

Verify any hostname from Terminal or with SWG bar:

openssl s_client -connect api.github.com:443 -servername api.github.com </dev/null 2>/dev/null | openssl x509 -noout -issuer -subject
security find-certificate -a -c "Fortinet" /Library/Keychains/System.keychain | grep -E "alis|labl"

If issuer= reports Fortinet_CA_SSL or your organization’s FortiGate inspection CA instead of a public CA (DigiCert, Let’s Encrypt, Google Trust Services), Deep Inspection is active. You can also paste the output into our free Work Mac SSL Self-Check or TLS Error Decoder.

2. Why killing FortiClient or disabling macOS proxy settings fails

  • FortiClient macOS System Extension & VPN tunnel: On managed Macs, FortiClient enforces routing through its utun / NetworkExtension filter; unchecking Wi-Fi HTTP/HTTPS proxy settings does not stop gateway-level Deep Inspection.
  • Deleting Fortinet_CA_SSL from Keychain breaks browsing: Untrusting the CA does not turn off FortiGate Deep Inspection—browsers immediately display NET::ERR_CERT_AUTHORITY_INVALID until MDM re-installs the certificate profile.
  • Disconnecting FortiClient drops internal access: Stopping the FortiClient VPN/SASE tunnel cuts off private Git servers, internal dashboards, and corporate DNS.

3. Three practical ways to handle Fortinet SSL Deep Inspection on macOS

Approach Who controls it Keeps FortiClient VPN & ZTNA running? Best use case
Per-domain SWG bypass (SWG bar) Local Mac user (on authorized networks) Yes — routes only the selected hostname over your Mac’s physical Hardware IPv4 interface Immediate hostname-level relief for certificate-pinned apps, mTLS, WebSockets, or broken APIs without disconnecting FortiClient (How to bypass SWG on a Mac)
FortiGate / FortiSASE Exemption (SSL/SSH Inspection → Exempt) Enterprise IT / Security team Yes Permanent org-wide exclusion under Security Profiles → SSL/SSH Inspection → Exempt from SSL Inspection (SWG bypass vs. TLS exception)
Export & trust Fortinet_CA_SSL in CLI runtimes Local developer Yes (traffic remains inspected) Policy requires Deep Inspection and git, npm, Python, Docker, Claude Code, or Cursor fail with unable to get local issuer certificate

4. Enable per-domain bypass or trust Fortinet_CA_SSL in CLI tools

Option A: Per-domain bypass with SWG bar (when authorized)

  1. Open SWG bar → Domains, select the exact failing hostname (see multi-domain SSO, API, and CDN bypass if login and API domains differ), and click Enable next to Bypass SWG—or run swgbar bypass enable <domain>.
  2. Wait for Bypassing, restart the affected tab or CLI command, and verify the public origin certificate with swgbar probe <domain>.
  3. If your corporate firewall blocks direct outbound Hardware IPv4 traffic, run swgbar bypass disable <domain> to restore normal FortiClient routing immediately.

Option B: Configure macOS CLI & AI tools to trust Fortinet_CA_SSL

mkdir -p "$HOME/.certs"
security find-certificate -c "Fortinet" -p /Library/Keychains/System.keychain > "$HOME/.certs/fortinet-ca-ssl.pem"

export NODE_EXTRA_CA_CERTS="$HOME/.certs/fortinet-ca-ssl.pem"
export SSL_CERT_FILE="$HOME/.certs/fortinet-ca-ssl.pem"
export REQUESTS_CA_BUNDLE="$HOME/.certs/fortinet-ca-ssl.pem"
export CURL_CA_BUNDLE="$HOME/.certs/fortinet-ca-ssl.pem"
git config --global http.sslCAInfo "$HOME/.certs/fortinet-ca-ssl.pem"

For runtime-specific recipes, see Fix Git & npm SSL certificate errors and Fix Python & Docker SSL errors on Mac.