iOS: the profile is installed but the certificate is not trusted

On iOS a root certificate takes two steps. The second one is under About.

What it means

The profile is installed, but Safari says the connection is not private and the proxy stays empty. Since iOS 10.3 a manually installed root certificate is not trusted for TLS until you turn trust on by hand.

How to fix it

Set the Wi-Fi proxy first: separate page.

Step 1. Install the profile. Open the certificate URL in Safari and allow the download; other browsers may only save the file. Then: Settings → Profile Downloaded → Install → passcode → Install → Done.

  • An uninstalled profile is deleted after 8 minutes.
  • Only one profile waits at a time: a second download replaces the first.
  • With Stolen Device Protection on, away from a familiar location, turn it off before installing.

If the row is gone, download again.

Step 2. Turn on full trust. The step people miss: Settings → General → About → Certificate Trust Settings (bottom of the list) → under «Enable full trust for root certificates», turn on your certificate. iOS warns that its owner can read your traffic. The owner is you.

Step 3. Check. An https site opens in Safari without a warning, and requests appear in the proxy.

Special cases

«Not Verified» on the profile (Settings → General → VPN & Device Management) is normal for a self-signed root. It does not block step 2.

No switch. Either the certificate is not a root CA (it must be self-signed with basicConstraints cA set, RFC 5280 § 4.2.1.9), or it came through MDM or Apple Configurator: those are trusted on install.

A managed phone. MDM can block profile installation; step 1 then fails.

The simulator:

xcrun simctl keychain booted add-root-cert /path/to/ca.cer

This writes into the simulator's trusted root store, so step 2 is usually unnecessary. Dragging the file onto the window works only for DER, and step 2 is then required. See iOS Simulator.

An app that pins checks the certificate itself. Only a code change helps.

App Transport Security. Do not set NSAllowsArbitraryLoads in production for a proxy: ATS accepts a fully trusted user root, and App Review asks you to justify the key.

A wrong clock. Outside the certificate's dates (RFC 5280 § 4.1.2.5) iOS refuses it even with trust on. Settings → General → Date & Time → Set Automatically.

An old root from another proxy. Remove it so you do not trust the wrong one: Settings → General → VPN & Device Management → the profile → Remove Profile.

See it on your own traffic

After step 2 the phone's requests arrive in full: host, path, headers, bodies. Before it you see only connections to port 443 that open and die: the app started the TLS handshake, rejected the certificate and left. Full setup: Mobile Devices.

View in Solpuga

Related