How-To: Issue SCEP Certificates in Apple Configurator

Learn how to issue SCEP certificates to devices using Apple Configurator and an EZCA SCEP CA

Overview - What is Apple Configurator?

Apple Configurator is a macOS application that allows administrators to configure and deploy iOS, iPadOS, and tvOS devices in bulk. It provides tools for creating and installing configuration profiles, including SCEP certificates, on Apple devices.

Does Apple Configurator Support SCEP Certificates?

Yes. Apple Configurator has built-in support for creating and deploying SCEP certificates to Apple devices. You can use Apple Configurator to create a configuration profile that includes a trusted Certificate and SCEP payload, which can then be installed on your devices to issue SCEP certificates from your EZCA SCEP CA.

When using Apple Configurator to issue SCEP certificates, you can use Apple’s built-in variables to dynamically populate the Subject and Subject Alternative Name (SAN) fields of the issued certificates with device-specific information, such as the device’s hardware UUID or hostname. This allows for more personalized certificates that can be used for a variety of use cases, such as Wi-Fi or VPN authentication.

Apple’s Built-In Variables

Variable Substitution
%ComputerName% The Mac computer’s name, as set in Sharing (in System Settings > General for macOS 13 or later, or in System Preferences for macOS 12.0.1 or earlier).
%HardwareUUID% The Mac computer’s unique identifier.
%HostName% The Mac computer’s DNS name, such as mac1.betterbag.com.
%LocalHostName% The Mac computer’s local network name, such as Mac1.local.
%MACAddress% The Mac computer’s Ethernet (en0) MAC address.
%SerialNumber% The Mac computer’s serial number.

A good set of values to use would be:

  • Subject: CN=%HardwareUUID%
  • DNS SAN: %HostName%

Can I Use Apple Configurator-Issued SCEP Certificates for Wi-Fi or VPN?

Yes! Once you issue SCEP certificates to your devices using Apple Configurator, you can use them like any X.509 certificate. This means you can use them for Wi-Fi authentication, VPN authentication, or any other use case that requires a client certificate. The use of Apple’s built-in variables allows for more personalized certificates that can be tailored to specific devices.

What Types of Apple Devices Can I Issue SCEP Certificates To with Apple Configurator?

Apple Configurator supports managing iOS, iPadOS, tvOS, and macOS devices. This means you can issue SCEP certificates to iPhones, iPads, Apple TVs, and Macs using the custom profile method described in this guide.

How to Configure Apple Configurator to Issue SCEP Certificates - Step-by-Step Guide

The following steps will guide you through the process of configuring Apple Configurator to issue SCEP certificates from your EZCA SCEP CA using Custom Profiles.

Prerequisites for Configuring Apple Configurator with SCEP

  1. You will need a macOS device with Apple Configurator installed to create the custom profile.
  2. You will need an EZCA SCEP CA set up and ready to issue certificates.

How to Download Your Root and/or SCEP CA Certificates from EZCA

To establish trust for your SCEP certificates, you will need to download and later push the CA certificate(s) for your SCEP CA to your devices. If your SCEP CA is a subordinate CA, you will need to download both the root and SCEP CA certificates. If your SCEP CA is a root CA, you will only need to download the SCEP CA certificate.

  1. Navigate to your EZCA portal and sign in as a PKI Administrator.

  2. Click on the Certificate Authorities tab and scroll to your SCEP CA.

  3. Click on the View Requirements button for your SCEP CA.

    Certificate Authorities in EZCA Portal
  4. Scroll down to the CA Locations section and click on the Download Certificate button for your CA.

    Download CA Certificates from EZCA Portal
  5. If your SCEP CA is a subordinate CA, repeat the process to download the root CA certificate as well.

How to Enable Static SCEP Challenge in Your EZCA SCEP CA

Before you can create a custom profile for SCEP in Apple Configurator, you need to ensure that your EZCA SCEP CA is configured to use a static challenge.

  1. Navigate to your EZCA portal and sign in as a PKI Administrator.

  2. Click on the Certificate Authorities tab and scroll to your SCEP CA.

    Certificate Authorities in EZCA Portal
  3. Click on View Requirements for your SCEP CA.

  4. Check the box for Enable SCEP Static Challenge and click Save Changes. You will now see your Static Challenge SCEP URL and SCEP Challenge:

    SCEP CA Static Challenge in EZCA Portal

How to Create a Configuration Profile in Apple Configurator for SCEP

  1. Start on a macOS device with Apple Configurator installed.

  2. Open Apple Configurator, and click on FileNew Profile to create a new configuration profile.

  3. Fill out the General section with a name, identifier, and description for the profile.

    Apple Configurator General Section for SCEP Profile
  4. Click on the Certificates section and then click on the Configure button to add a new certificate payload.

  5. Select the CA certificate you downloaded from EZCA and upload it to the profile. This will ensure that the CA certificates are pushed to the devices and that they trust the SCEP CA.

  6. Repeat the process to upload the root CA certificate if your SCEP CA is a subordinate CA.

    Apple Configurator Certificates Section for SCEP Profile
  7. Next, click on the SCEP section and click on the Configure button to add a new SCEP payload.

  8. Copy the Static Challenge SCEP URL from your EZCA portal and paste it into the URL field in Apple Configurator. Do the same for the Static Challenge in the Challenge field.

  9. Configure the remaining fields:

    • Name: Set as the name of your SCEP CA
    • Subject: Use a static value or Apple’s built-in variables (e.g. CN=%HardwareUUID%)
    • Subject Alternative Name Type: Set as DNS Name
    • Subject Alternative Name Value: Use a static value or Apple’s built-in variables (e.g. %HostName%)
    • Key Size: Set as 2048 or higher.
    • Key Usage: Set as “Sign” and “Key Encipherment”.
  10. You should now have a complete SCEP configuration in your custom profile:

    Apple Configurator SCEP Section for SCEP Profile
  11. Save the profile to your device as a .mobileconfig file.

How to Install a Configuration Profile on macOS

Now that you have created a configuration profile for SCEP in Apple Configurator, you can install it on your device.

  1. Double-click the .mobileconfig file you saved from Apple Configurator.

  2. Open Settings. In the top-right of the page, click Profile Downloaded. You will see the profile you just created in Apple Configurator under Downloaded.

    Profile Downloaded in macOS Settings
  3. Double-click on the profile to view its contents and click Install….

    Profile Contents in macOS Settings
  4. Your trusted certificates will now be installed, and the device will attempt to enroll in SCEP and request a certificate from your EZCA SCEP CA.

How to Verify Your Apple Devices Received the SCEP Certificate

To verify that your devices have received the SCEP certificate, you can check the device’s certificate store via the Keychain Access app on macOS.

  1. Open the Keychain Access app on your macOS device.

  2. In the left sidebar, select login.

  3. Select the Certificates category.

  4. You will now see both the CA certificate(s) you uploaded in the profile and the SCEP certificate issued to the device.

    Device Keychain with SCEP Certificate