Why Safari blocked that CA but git and curl still trust it
December 2, 2026
A CA distrust or compromise can look inconsistent on a Mac. Safari refuses a site, and then /usr/bin/git or /usr/bin/curl still connects. That is usually not a bug in either program. macOS keeps more than one trust store, and they are not updated together.
This is a map of those stores, with the October 2026 eMudhra incident as the example. It is not a rewrite of Apple’s hand-edit for /etc/ssl/cert.pem. For that interim recipe and why it is a fragile operations practice, see the 28 October post.
One machine, several trust stores
Safari and apps that use Apple’s security frameworks
Safari, Mail, and other software that uses Apple’s networking and security frameworks consult Apple’s system roots and trust settings — the Keychain world, including the SIP-protected system root keychain at /System/Library/Keychains/SystemRootCertificates.keychain. Apple can push a certificate block in configuration data without a macOS point release. That is the path that blocked the compromised eMudhra intermediates in the browser.
trustprune’s Darwin platform store can list those Keychain-backed roots. It does not rewrite the SIP-protected system roots. Platform operations that it does support (including login-keychain backup and restore) are documented in Platforms and Backup and restore.
Command-line tools that read /etc/ssl/cert.pem
/etc/ssl/cert.pem is a PEM bundle on disk. Apple Support states that some command-line tools included with macOS or the Xcode Command Line Tools — including curl, git, python3, ruby, perl, and openssl — check certificates against that file. For certificates that chain to a root in the file, those tools do not consult Apple’s block or check whether the certificate has been revoked.
A Homebrew or otherwise separately packaged curl or openssl may use a different bundle. The split above is about the tools Apple ships.
In trustprune this file is a separate store: --app ssl. It is not the Darwin platform store, and it is not available as a store on Linux or Windows.
App stores that ship their own roots
Java (cacerts), Python certifi (cacert.pem), and Firefox (an NSS profile) keep their own CA lists. They do not automatically follow either Apple’s Keychain block or a change to /etc/ssl/cert.pem. On macOS and Windows, --app chrome wraps the platform store. Chrome’s default public roots come from the Chrome Root Store, and Chrome can also apply local trust decisions, so a platform-store listing is not Chrome’s full trust inventory. On Linux, Chrome can use an NSS database at ~/.pki/nssdb. See Platforms for discovery paths and which operations each app supports. Not every application on the machine is a supported store.
What happened in the eMudhra incident
In October 2026, the private keys of eight eMudhra intermediate CAs were compromised. Six of them could issue TLS certificates; each of those six had two certificates (twelve in total): one chaining to emSign ECC Root CA - G3, and one cross-signed by Sectigo and chaining to AAA Certificate Services. Apple’s account is in About the compromised eMudhra intermediate CAs (updated 9 November 2026). A short incident list, including this one, is on the Why page.
Apple’s block versus the PEM file
Apple blocked those twelve certificates and emSign ECC Root CA - G3 in Safari, Mail, and apps that use Apple’s frameworks. That block is what most people saw first.
The same document is explicit about the CLI gap:
On Mac, some command-line tools included with macOS or the Xcode Command Line Tools (including curl, git, python3, ruby, perl, and openssl) check certificates against /etc/ssl/cert.pem. For certificates that chain to a root CA certificate in this file, these tools don’t check Apple’s block or whether the certificate has been revoked.
That is why git and curl could still accept a chain after Safari had refused it.
Later point releases, and why the vendor file can still change
Starting in macOS 27.2.1 — and in macOS 26.7.3 and 15.8.3 for machines on those releases — Apple also blocks those twelve certificates in the bundled command-line tools, and it removes the two roots those chains use from /etc/ssl/cert.pem, along with three other eMudhra roots. If you can update, that is the path Apple recommends.
Those point releases are not a reason to skip the other stores, and they are not a promise that /etc/ssl/cert.pem will never be replaced again. Apple still tells people who hand-edit the file to re-check it after each software update and to repeat the removal if a root they stripped has returned. After you do reach 27.2.1, 26.7.3, or 15.8.3, Apple says not to restore a cert.pem backup made before the update. Public reporting dated 28 October 2026, updated 10 November, also recorded that macOS 27.2 restored a hand-edited cert.pem (we-have-a-problem.com). The durable lesson is the same: a prune of that file does not automatically survive the next OS update.
Audit first — list the stores on the machine
Install current trustprune (v1.0.0) if you want one CLI for this inventory; see Install. Listing does not change a store.
See which stores the tool finds:
trustprune apps
trustprune apps --format json
Count or list certificates. --app ssl is the CLI PEM bundle; omit --app for the platform store; other apps are explicit:
trustprune list --count
trustprune list --app ssl --count
trustprune list --app ssl
trustprune list --app java --count
trustprune list --app firefox --count
trustprune list --app chrome --count
trustprune list --app certifi --count
On macOS and Windows, list --app chrome wraps the platform store; it is not an inventory of the Chrome Root Store.
On Windows, the platform store is list-only: allowlist, backup, add, and restore are no-ops there. Java can still be backed up and allowlisted on Windows when a usable JAVA_HOME is set.
Optional native checks, if you want to corroborate a store without trustprune:
- Keychain:
security find-certificate -a -c "emSign" /System/Library/Keychains/SystemRootCertificates.keychain - The PEM bundle:
grep -F "emSign ECC Root CA - G3" /etc/ssl/cert.pem - A custom bundle:
echo "$SSL_CERT_FILE"; git config --get http.sslCAInfo
Those commands only tell you whether a name or path is present. They are not a complete audit of every CA on the machine.
Confirm a host against a chosen store
trustprune connect attempts an HTTPS handshake using the platform store or an app store (Basics, Usage):
trustprune connect https://example.com
trustprune connect --app ssl https://example.com
trustprune connect --app java https://example.com
A bare host is treated as https://. This checks the store you selected, not every client on the system.
If you need to change a store
Backup, preview, apply, and restore are the same workflow on every store that supports those operations (Allowlists, Backup and restore):
trustprune backup --app ssl --dry-run
trustprune backup --app ssl
trustprune allowlist --app ssl --file allowlist.yaml --dry-run
trustprune allowlist --app ssl --file allowlist.yaml
trustprune list --app ssl --count
trustprune connect --app ssl https://example.com
trustprune restore --app ssl --dry-run
trustprune restore --app ssl
allowlist refuses to write if that store has no backup. Darwin --app ssl backups are copies of /etc/ssl/cert.pem under ~/Library/trustprune/ssl/<timestamp>/cert.pem. A structured backup with a dry-run plan is easier to review and roll back than a single cert.pem.orig plus a one-off awk.
Limits to keep in mind:
- macOS system roots are SIP-protected and are not rewritten.
--app sslonly manages/etc/ssl/cert.pem. - The Darwin platform store is partial. The Windows platform store is list-only; do not expect
allowlistorbackupto change it. - Not every app is a supported store. A change in one store does not update the others.
- An OS update can put vendor roots back into
/etc/ssl/cert.pem. Re-list after updates.
Linux, briefly
Linux has the same kind of split: a system CA directory and generated bundle (update-ca-certificates on Debian and Ubuntu, update-ca-trust on RHEL, Fedora, and Arch) plus separate stores for Firefox, Java, certifi, and, on Linux, Chrome’s NSS database when it exists. The system bundle and those app stores are not kept in sync. How to distrust a root CA on Linux (Debian, Ubuntu, RHEL, Arch) is the walkthrough for the system store.
Further reading
- Apple told Mac admins to hand-edit a PEM file. That is a symptom.
- A limited PEM bundle for a few hostnames — work on a PEM copy when you do not need to change the system store
- Platforms
- Backup and restore, including Darwin
--app ssl - Why
- Apple Support HT149555
Changing CA trust stores can break TLS, cut off access and reduce security, so back up first and proceed at your own risk. trustprune is provided as is, with no warranty, under the Apache License 2.0, and its authors and contributors accept no liability.