Fix Firefox 'SEC_ERROR_UNKNOWN_ISSUER' Behind Zscaler & Corporate SWGs on Mac

Fix Mozilla Firefox SEC_ERROR_UNKNOWN_ISSUER and MOZILLA_PKIX_ERROR_MITM_DETECTED errors behind Zscaler, Cloudflare WARP, Netskope, or Cisco Umbrella on macOS in 10 seconds.

SWG bar · Updated

If Chrome and Safari load websites normally on your work Mac, while Mozilla Firefox blocks almost every HTTPS page with “Warning: Potential Security Risk Ahead” and error code SEC_ERROR_UNKNOWN_ISSUER or MOZILLA_PKIX_ERROR_MITM_DETECTED, your corporate Secure Web Gateway (Zscaler, Cloudflare WARP, Netskope, Cisco Umbrella, Palo Alto, or Fortinet) is decrypting HTTPS traffic.

Unlike Safari and Chrome, Firefox relies on Mozilla’s own NSS certificate store by default rather than automatically trusting MDM-installed root certificates in macOS System Keychain. Paste your error into our free SWG & SSL Error Decoder or apply the 10-second fix below.

1. First verify the issuer is your real corporate SWG (not a malicious MITM)

Never blindly bypass a browser certificate warning—especially on café or airport Wi-Fi. Confirm who actually signed the certificate:

  1. On the Firefox warning screen, click Advanced… → View Certificate.
  2. Check the Issuer Name field (for example, Zscaler Root CA, Cloudflare Gateway CA, Netskope, Cisco Umbrella, or your company’s internal PKI).
  3. You can also cross-check from Terminal or the SWG bar menu bar app:
    openssl s_client -connect github.com:443 -servername github.com </dev/null 2>/dev/null | openssl x509 -noout -issuer -subject

Only proceed once the issuer matches your employer’s known SWG or MDM root CA.

2. Fastest 10-second fix: enable security.enterprise_roots.enabled in Firefox

Instead of manually exporting and importing a PEM file that will break the next time IT rotates its root CA, tell Firefox to inherit trusted root certificates from macOS System Keychain:

  1. Type about:config in the Firefox address bar and press Return.
  2. Click Accept the Risk and Continue.
  3. Search for security.enterprise_roots.enabled.
  4. Double-click the row (or click the toggle button) to change its value from false to true.
  5. Quit (⌘Q) and reopen Firefox.

Because Firefox now reads macOS System Keychain alongside Mozilla’s built-in root list, future corporate certificate rotations work automatically.

3. Alternative fixes: manual CA import, policies.json & DNS-over-HTTPS

If your organization locks about:config or you manage multiple Firefox profiles:

Option A: Manual PEM import in Firefox Settings

Export the corporate SWG root certificate from macOS System Keychain:

mkdir -p "$HOME/.certs"
# Replace "Zscaler" with Cloudflare, goskope, Cisco Umbrella, Fortinet, etc.
security find-certificate -c "Zscaler" -p /Library/Keychains/System.keychain > "$HOME/.certs/corporate-swg-root.pem"

Then open Firefox → Settings → Privacy & Security → Certificates → View Certificates… → Authorities → Import…, select ~/.certs/corporate-swg-root.pem, and check Trust this CA to identify websites.

Option B: Persistent enterprise policy (policies.json)

To apply enterprise root trust across all Firefox profiles on macOS, create /Applications/Firefox.app/Contents/Resources/distribution/policies.json:

{
  "policies": {
    "Certificates": {
      "ImportEnterpriseRoots": true
    }
  }
}

Option C: Check Firefox DNS-over-HTTPS (DoH) conflicts

If sites time out or show captive-portal / SWG block errors after fixing SEC_ERROR_UNKNOWN_ISSUER, open Firefox Settings → Privacy & Security → DNS over HTTPS and switch from Max Protection to Default Protection or Off so DNS resolution aligns with your corporate SWG policy.

4. Trusting the SWG CA vs. bypassing HTTPS decryption per domain

Enabling security.enterprise_roots.enabled clears the Firefox error screen, but it does not stop HTTPS decryption—your corporate gateway still sees decrypted page content and headers.

If you want to inspect which domains are being decrypted in real time—or restore the original site certificate per domain where permitted by company policy—use SWG bar from your macOS menu bar:

swgbar overview
swgbar probe github.com
swgbar bypass enable github.com

Learn more in How to check if your work Mac is intercepting HTTPS, What your employer can see on a work Mac, and How to bypass SWG on a Mac.