How to Install Self-Signed S/MIME Certificates on iOS and Enable Encrypted E-mail
S/MIME allows signed and encrypted e-mail, enhancing privacy and security. Using S/MIME with self-signed certificates on an iOS device requires installing and configuring the certificates for use in the Apple Mail app. This article covers the process step by step.
NOTE: An S/MIME certificate is needed to complete this process. If one is not available, see the companion article covering how to create and package self-signed S/MIME certificates in PKCS12 format using OpenSSL.
Instructions
Step 1: Load the .p12 File on an iOS Device
- Upload the
.p12file to iCloud Drive or e-mail it to an address accessible on the iOS device. (E-mail is less secure but used here for simplicity.) - Once the file is available on the device, tap it to start the installation.
- If asked to
Choose a Device, select the appropriate one and confirm. - The message
Profile Downloadedis displayed. TapClose.
Step 2: Install the Profile
- Open
Settingsand tapProfile Downloaded. - Tap
Install(top right). - Enter the device passcode if prompted.
- A warning that
The profile is not signed.may appear since the certificate is self-signed. TapInstallagain. - Confirm the installation by tapping
Installat the bottom of the screen. - Enter the password set when creating the
.p12file, then tapNext. - The
Profile Installedscreen is displayed. TapDone. - Once installed, the configuration profile appears in
Settings > General > VPN & Device Management.
Step 3: Enable S/MIME in Apple Mail
With the certificate installed, the next step is configuring S/MIME in Mail:
- Open
Settings. - Tap
Apps. - Tap
Mail. - Tap
Mail Accounts. - Select the e-mail account (for example, iCloud).
- Tap
Signing and Encryption. - Tap
Signand enable it. - Confirm the correct certificate is selected.
- Tap
Backto return toSigning and Encryption. - Tap
Encrypt by Defaultand enable it. - Confirm the correct certificate is selected.
- Tap
Backto return toSigning and Encryption. - Tap
Doneand exitSettings.
S/MIME is now active and ready to use for e-mails sent from this account.
Step 4: Send Encrypted E-mails
Since S/MIME uses public-key encryption, sending encrypted e-mail requires the recipient’s public key. If a sender uses a self-signed certificate, Mail may show the certificate as untrusted. This behavior can be tested with two e-mail addresses, each with its own certificate:
- Send a signed (not encrypted) e-mail to a different address without the certificate profile installed. The Mail app displays a warning that the
Message is Unencrypted. TapSend Anyway. - When the e-mail arrives, the sender’s address will appear in red with a question mark icon.
- Tap the icon or address to view details.
- Tap
View Certificate. - Tap
Install. - Tap
Donetwice to exit. - Now, Mail recognizes the public key, and encrypted e-mail is possible. Reply to the signed e-mail. The contact will now show in blue with a lock icon.
Troubleshooting
A No valid certificates found error when enabling S/MIME indicates the certificate may be missing the extendedKeyUsage = emailProtection extension. Double-check the certificate settings during creation.
Summary
Following these steps installs self-signed S/MIME certificates on an iOS device, enables secure e-mail communication, and supports sending encrypted e-mails. Self-signed certificates require extra steps for trust validation, but they are a useful way to test and implement encrypted e-mail solutions. With S/MIME enabled, e-mail exchanges from the account are both signed and encrypted, enhancing security.