> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getprimo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Certificate enrollment

> Install certificates with their private keys, from password-protected PKCS #12 files, on managed Macs.

The Certificate enrollment control installs a certificate and its private key, given as a password-protected PKCS #12 file, in the System keychain of your Macs, for Wi-Fi, VPN or other services that authenticate with it. The control takes several configurations, one per certificate.

## Platform compatibility

| macOS | Windows | Linux | iOS / iPadOS | Android |
| - | - | - | - | - |
| ✅ | | | | |

Requires macOS 15 or later.

## Set up the control

**1. Add a configuration**

Go to **MDM** > **Controls**, open **Certificate enrollment**, then click **Add configuration**. Add one configuration per certificate.

**2. Upload the certificate**

Upload the PKCS #12 file, enter its password, and set the other settings. See the settings below.

**3. Select targeting**

Choose which devices to apply the configuration to: all macOS devices, specific device groups, or a custom target. Click **Activate** to deploy the configuration. **Save** keeps it inactive.

## Settings

| Setting | Description |
| - | - |
| **Certificate file (PKCS #12)** | A `.p12` or `.pfx` file holding one certificate and its private key, up to 1 MB. |
| **File password** | The password of the file. Required when you upload a file. |
| **Certificate file name** | The name the certificate takes on the Mac, up to 255 characters. Required. |
| **Private key exportable** | **On**, **Off** or **Not configured**. |

* **Certificate file name** is filled with the name of the uploaded file. You can change it.
* **Private key exportable** set to **On** lets the private key be exported from the keychain. **Off** keeps it from being exported. **Not configured** leaves the Mac's own default: recent macOS releases import the key as not exportable.
* When you edit a configuration, the file and its password are never shown. Leave **File password** empty to keep the stored file and password, or upload a new file with its password to replace them.

> [!WARNING]
>
> The PKCS #12 file must have a password: macOS refuses a file without one. Some older macOS releases also refuse a file exported with the newest OpenSSL defaults (AES-256 and PBKDF2). If a Mac refuses the file, export it again with the legacy encryption (`openssl pkcs12 -export -legacy`).

## How it works

Primo deploys one configuration profile per configuration, each with a PKCS #12 payload. The Mac installs the certificate and its private key in the System keychain. Several configurations apply together. The file and its password are stored encrypted.

Removing a configuration removes its certificate from the Mac.

## Modify or remove the control

Open the control from **MDM > Controls** to edit, deactivate or replace a configuration.

## Related articles

* [Controls overview](https://docs.getprimo.com/mdm/policies/overview.md)
* [Trusted certificates](https://docs.getprimo.com/mdm/policies/trusted-certificates.md)
* [Wi-Fi](https://docs.getprimo.com/mdm/policies/wifi.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.