iOS trusted-root management

Research note for #364. Researched November 2026 from official Apple documentation. This is a first slice: audit, a guided or profile-generated path, and a clear list of what cannot be automated. trustprune does not add, remove, or rewrite the preinstalled iOS Root Store, and it does not promise silent system-root changes.

Anything marked unverified was not confirmed in the Apple pages cited here. Don’t build on it without checking it first.

Summary

iOS keeps two different kinds of trust, and they are not equally reachable.

Preinstalled roots ship in Apple’s Root Store. The current published shared store (Trust Store version 2025082000, for iOS 26, iPadOS 26, macOS 26, tvOS 26, visionOS 26, watchOS 26 and later) is listed with SHA-256 fingerprints in List of available root certificates in iOS 26…. Earlier versions are indexed from Available root certificates for Apple operating systems. Apple can update that store over the air when a preinstalled root is compromised (Intro to certificate management). There is no documented configuration-profile payload or Settings toggle that removes or distrusts one of those preinstalled roots.

Additional roots are installed with a configuration profile (email, a website, Apple Configurator, or a device management service). A manual install is not trusted for SSL/TLS until the user enables it in Settings > General > About > Certificate Trust Settings, under “Enable full trust for root certificates” (Trust manually installed certificate profiles). Roots installed by Configurator, MDM, or an MDM enrollment profile are automatically trusted for SSL, and on supervised devices or MDM-installed roots the user cannot change those trust settings (Intro to certificate management; Certificates payload settings).

trustprune can help in two modest ways today: you can list --file a .mobileconfig (unsigned XML or a signed CMS/PKCS#7 profile) to see which certificates it contains, and create --format mobileconfig can emit an unsigned profile that adds allowlisted roots. Neither path changes Apple’s preinstalled store.

Certificate Trust Settings (user-installed roots)

On iPhone and iPad, the trust-settings screen is:

Settings > General > About > Certificate Trust Settings

Apple documents two uses of that screen:

  1. Root Store version. The iOS 26 root-store article says: Settings > General > About, scroll to the bottom, then tap Certificate Trust Settings. That is how you learn which published list applies to the device.
  2. Full trust for additional roots. Support article 102390 says that after a profile is sent by email or downloaded from a website, SSL/TLS trust is off until the user turns it on under “Enable full trust for root certificates.” If that heading does not appear, no additional certificates have been installed.

The same article recommends deploying certificates with Apple Configurator or MDM, because those installs are automatically trusted for SSL. The deployment guide adds that a manual install on an unsupervised device shows a warning that the certificate “won’t be trusted for websites until you enable it in Certificate Trust Settings,” and that “Root certificates on supervised devices, or that a device management service installs, turn off the option to change the trust settings.”

Turning a Certificate Trust Settings switch off, or deleting the profile that carried the certificate, is the documented way to drop trust in an additional root. It is not documented as a way to prune Apple’s preinstalled list.

MDM and configuration profiles

Installing and removing a profile

  • A profile downloaded from a website or email is not installed until the user opens Settings and taps Profile Downloaded (or Enroll in [organization]), then Install. If it is not installed within 8 minutes, iOS deletes it. Only one downloaded profile is pending at a time (Install a configuration profile).
  • Installed profiles are listed in Settings > General > VPN & Device Management. Deleting a profile also deletes the settings, apps, and data associated with it (Install or remove configuration profiles on iPhone).
  • A device management service can install profiles without user interaction on enrolled devices (102400).

Certificate payloads

The Certificates payload identifiers Apple lists are com.apple.security.pem, com.apple.security.pem1, com.apple.security.pem12, and com.apple.security.root (Certificates payload settings). Apple’s device-management schema describes com.apple.security.root as an alias for com.apple.security.pkcs1: a required PayloadContent (the certificate bytes, base64 in the profile), and an optional file name. It is allowed as a manual install on iOS 4 and later, and more than one such payload may appear in a profile (com.apple.security.root.yaml). com.apple.security.pem uses the same PayloadContent data field, but the bytes are a PEM-encoded certificate (one or more), not DER (com.apple.security.pem.yaml).

A certificate has automatic full trust if it is installed by an Apple Configurator instance that has the same supervision identity as the device, automatically installed from a supported device management service, or manually installed by a payload attached to an enrollment profile. Apple’s stated best practice is to put the Certificates payload in the enrollment profile so users do not have to enable trust themselves (Certificates payload settings).

These payloads add certificates. They are not a documented way to strip a preinstalled root.

Restrictions that touch certificate trust

The Restrictions payload (com.apple.applicationaccess) has two relevant keys, documented under user-facing names in Review device management restrictions and under schema names in com.apple.applicationaccess.yaml:

Support article name Schema key What Apple says
Automatic updates to certificate trust settings (iOS 7, iPadOS 13.1; not supervised-only) allowOTAPKIUpdates (default true) If false, over-the-air PKI updates are disabled. CRL and OCSP checks stay enabled. The deployment guide describes this as the “Allow automatic updates to certificate trust settings” restriction, which “prevents certificates updates over wireless or wired networks.”
Users accept untrusted TLS certificates (iOS 5, iPadOS 13.1, visionOS 1.1) allowUntrustedTLSPrompt (default true) If false, the system automatically rejects untrusted HTTPS certificates without prompting. The Support article says this applies to Safari, Mail, Contacts, and Calendar, and that when the restriction is on, only certificates with trusted root certificates are accepted without a prompt.

Turning off automatic trust-store updates freezes Apple’s own wireless repairs, including updates that distrust a compromised preinstalled root. That is a management choice, not a substitute for an allowlist, and it can leave a device without Apple’s later distrusts.

No restriction in that schema is documented as “remove this preinstalled root” or “replace the Root Store with this list.”

Apple trust-store versions

Beginning with iOS 12, macOS 10.14, tvOS 12, and watchOS 5, Apple operating systems share a Root Store. As the version is updated, previous lists are archived from Available root certificates for Apple operating systems.

As of this research (November 2026):

  • The current published article is iOS 26 / Trust Store version 2025082000. Each row includes a SHA-256 fingerprint.
  • On the device, read the installed version in Certificate Trust Settings, as that article describes.
  • On a Mac, the same article says to open /System/Library/Security/Certificates.bundle/Contents/Resources/TrustStore.html; the version is in the upper-right corner. That path is for macOS, not iOS.

When administrators build configuration profiles, Apple says these preinstalled Root CA certificates do not need to be included (126047).

trustprune does not download or refresh those HTML lists in this slice. Compare fingerprints from the article that matches the device’s advertised version.

What is readable from a backup or a profile

A configuration profile you already have

A .mobileconfig / .plist configuration profile is a file. If it contains com.apple.security.root, com.apple.security.pkcs1, or com.apple.security.pem payloads, trustprune list --file <profile.mobileconfig> will list those certificates (DER data for root/pkcs1, PEM text in the data bytes for pem, including multiple PEM certificates in one payload). Signed CMS/PKCS#7 profiles (the usual form of a downloaded iOS profile) are unwrapped and the inner plist is parsed; the signature is not verified. If the wrapper cannot be unwrapped, the error names the file and includes openssl smime -verify -noverify -inform DER -in profile.mobileconfig -out profile.plist. It does not include parser internals. PKCS#12 identity payloads (com.apple.security.pkcs12 / com.apple.security.pem12) are skipped: they can carry a private key, and this slice does not unpack them. Binary plists (bplist) are not parsed; convert them with Apple’s plutil -convert xml1 first. This is a file parse, not a live device read.

Encrypted versus unencrypted backups

About encrypted backups says an encrypted Finder, Apple Devices, or iTunes backup can include saved passwords, Wi-Fi settings, website history, Health data, and call history, and that unencrypted backups do not include those items. Encrypted backups do not include Face ID, Touch ID, or device passcode data. A backup is not encrypted by default.

Back up managed Apple devices repeats that unencrypted backups never include saved passwords, call history, Health data, website history, or Wi-Fi settings. Finder and Apple Configurator backups are unencrypted by default; iCloud Backup is encrypted by default.

For management data, that same article is version-specific:

  • iOS 26, iPadOS 26, visionOS 26, or earlier: an encrypted backup of a device enrolled with profile-based Device Enrollment or Automated Device Enrollment includes the management configuration. That configuration “describes, among other things, whether a device is supervised or a Shared iPad. It also contains configuration profiles and their associated data.”
  • iOS 27, iPadOS 27, and visionOS 27: “backups don’t include device management information such as the enrollment profile, management configuration, and supervision status.”

Extracting those profiles from a backup file, and listing keychain trust records, is unverified here: Apple documents that the data can be present in some encrypted backups, not a supported, stable export API for third-party tools. trustprune does not read iOS backup directories in this slice.

Keychain data protection says that, by default, keychain items installed by configuration profiles on iOS, iPadOS, and visionOS are available after first unlock and are nonmigratory, with listed exceptions (including a certificate that is not an identity). Keybags for data protection says nonmigratory keychain items in an encrypted backup stay wrapped with the device’s UID-derived key, so they can be restored to the original device but are inaccessible on a different device. Even when a backup contains certificate material, it may not be usable for an audit on another machine.

Audit / list approach

Until trustprune has a live iOS store — and this slice does not add one — audit is a comparison you can do with published data and files you already have:

  1. On the device, open Settings > General > About > Certificate Trust Settings and record the Root Store version and any additional roots listed under “Enable full trust for root certificates.”
  2. Open Settings > General > VPN & Device Management and note installed profiles. If you can export or already have a profile file, trustprune list --file profile.mobileconfig lists the root/PEM certificate payloads in it (unsigned XML or a signed CMS/PKCS#7 profile; the signature is not verified).
  3. Open the Apple root-store article that matches the version from step 1, starting from the version index. Compare SHA-256 fingerprints to a trustprune allowlist, and to the built-in denylist and embedded blocklists, the same way you would for any other list of fingerprints.
  4. Treat MDM-installed and supervised roots as visible in the management service’s inventory when you have access to that service. Do not assume an unencrypted backup, or a backup of an iOS 27 enrolled device, will contain those profiles.

There is no supported trustprune list --app ios of the live system store. USB or lockdown-based inventory is unverified and is not used here.

Guided or profile-generated distrust path

Additional (user or MDM) roots

  • Guide, unsupervised manual install: turn off “Enable full trust for root certificates” for that root in Certificate Trust Settings, and/or delete the profile in Settings > General > VPN & Device Management. Deleting the profile removes its associated settings and data (iPhone User Guide).
  • Guide, MDM or supervised install: the user cannot change trust settings for those roots. Remove or replace the profile (or certificate payload) in the device management service, or delete the profile if the service and supervision state still allow it. Put replacements in the enrollment profile when you want automatic trust (Certificates payload settings).
  • Profile-generated add (not a system-root prune): trustprune create --file allowlist.yaml --format mobileconfig --out roots.mobileconfig writes an unsigned configuration profile whose com.apple.security.root payloads are the certificates that matched the allowlist. Install it using the steps in 102400 or through Configurator/MDM. After a manual install, enable SSL/TLS trust in Certificate Trust Settings (102390). This only adds those roots. It does not remove preinstalled roots, does not sign the profile, and does not include private keys.

Preinstalled roots

There is no guided Settings path, and no generated profile, that distrusts or deletes a preinstalled Root Store entry. The realistic options are:

  • Use the published store list as an audit (above).
  • Rely on Apple’s wireless trust-store updates for compromised preinstalled roots, and be careful with the restriction that disables those updates.
  • Use the “Users accept untrusted TLS certificates” restriction to stop prompts for certificates that do not chain to a trusted root. That is not a root allowlist.

Operations iOS cannot automate (and trustprune will not pretend to)

The following are out of scope for this slice and are not documented by Apple as something a third-party tool can do silently:

  • Add, remove, or rewrite preinstalled Root Store certificates on the device.
  • Install a profile that means “trust only this allowlist” for Apple’s built-in roots.
  • Toggle Certificate Trust Settings for the user without their action (manual installs) or override the locked toggle on supervised / MDM-installed roots.
  • Run allowlist, add, backup, or restore against a live iOS system store.
  • Read the live device Root Store over USB as a supported Apple API (methods outside Apple’s documentation are unverified).
  • Depend on an unencrypted backup, or on a backup of iOS 27+ enrolled devices, to contain configuration profiles or management configuration.
  • Use nonmigratory keychain items from a backup on a different device.
  • Sign, encrypt, or lock a generated profile, or emit PKCS#12 identity payloads. Signing keys are not generated here.
  • Disable Stolen Device Protection, or otherwise change device security settings, on the user’s behalf. Apple’s install article notes that Stolen Device Protection may need to be turned off temporarily, in an unfamiliar location, before a profile can be installed (102400); that step stays with the user.

Commands in this slice

trustprune list --file roots.mobileconfig
trustprune create --file allowlist.yaml --format mobileconfig --out roots.mobileconfig

list --file also still accepts PEM bundles. create --format pem is unchanged. There is no --app ios store.

← Platforms


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.

This site uses Just the Docs, a documentation theme for Jekyll.