How to Install and Trust Intermediate & Root CA Certificates on iPhone

When developing, you may want to build your own Certificate Authority (CA) with a public key certificate, issue a self-signed server certificate, and test HTTPS communication.

This page explains how to install your custom CA's intermediate and root certificates on an iPhone and configure the device to trust them.


We'll assume that you already have the intermediate CA certificate and root CA certificate as .pem files. Send these files to your iPhone via email or another method and save them on the device.

Install the Intermediate CA Certificate on iPhone

Let's start by installing the intermediate CA certificate on your iPhone.

Tap the intermediate CA certificate .pem file saved on your iPhone.

How to Install Intermediate and Root CA Certificates on iPhone 1


If prompted to select a device, choose iPhone.

How to Install Intermediate and Root CA Certificates on iPhone 2


A message saying “Profile Downloaded” will appear. Tap Close.

How to Install Intermediate and Root CA Certificates on iPhone 3


Open the Settings app, and you'll see “Profile Downloaded.” Tap it.

How to Install Intermediate and Root CA Certificates on iPhone 4


The profile for the intermediate CA certificate will be displayed. Tap Install.

How to Install Intermediate and Root CA Certificates on iPhone 5


Enter your device passcode.

How to Install Intermediate and Root CA Certificates on iPhone 6


A warning will appear. Tap Install.

How to Install Intermediate and Root CA Certificates on iPhone 7


Tap Install again.

How to Install Intermediate and Root CA Certificates on iPhone 8


Once the installation is complete, tap Done.

How to Install Intermediate and Root CA Certificates on iPhone 9


The intermediate CA certificate is now installed.

How to Install Intermediate and Root CA Certificates on iPhone 10

Install the Root CA Certificate on iPhone

Next, let's install the root CA certificate on your iPhone. The process is the same as installing the intermediate CA certificate.


Tap the root CA certificate pem file saved on your iPhone.

How to Install Intermediate and Root CA Certificates on iPhone 11


If prompted to select a device, choose iPhone.

How to Install Intermediate and Root CA Certificates on iPhone 12


A message saying “Profile Downloaded” will appear. Tap Close.

How to Install Intermediate and Root CA Certificates on iPhone 13


Open the Settings app, and you'll see “Profile Downloaded.” Tap it.

How to Install Intermediate and Root CA Certificates on iPhone 14


The profile for the root CA certificate will be displayed. Tap Install.

How to Install Intermediate and Root CA Certificates on iPhone 15


Enter your device passcode.

How to Install Intermediate and Root CA Certificates on iPhone 16


A warning will appear. Tap Install.

How to Install Intermediate and Root CA Certificates on iPhone 17


Tap Install again.

How to Install Intermediate and Root CA Certificates on iPhone 18


Once the installation is complete, tap Done.

How to Install Intermediate and Root CA Certificates on iPhone 19


The root CA certificate is now installed.

How to Install Intermediate and Root CA Certificates on iPhone 20

Trust the Root CA Certificate on iPhone

Now, let's configure your iPhone to trust the installed root CA certificate.

Open the Settings app and select General.

How to Install Intermediate and Root CA Certificates on iPhone 21


In the General menu, tap About.

How to Install Intermediate and Root CA Certificates on iPhone 22


Scroll to the bottom and tap Certificate Trust Settings.

How to Install Intermediate and Root CA Certificates on iPhone 23


Under “Enable Full Trust for Root Certificates,” you'll see the root certificate you just installed. Toggle it on.

How to Install Intermediate and Root CA Certificates on iPhone 24


A warning will appear. Tap Continue.

How to Install Intermediate and Root CA Certificates on iPhone 25


Your iPhone is now configured to trust the installed root certificate.

How to Install Intermediate and Root CA Certificates on iPhone 26


That's it. You've now installed and trusted both the intermediate and root CA certificates on your iPhone.