How-To: Issue SCEP Certificates in NinjaOne on iOS

Learn how to issue SCEP certificates to iOS devices using NinjaOne and an EZCA SCEP CA

Overview - Issuing SCEP Certificates with NinjaOne on iOS

In this guide, we will walk through the steps to configure NinjaOne to issue SCEP certificates from your EZCA SCEP CA to iOS devices using an Apple management profile (.mobileconfig) file. At a high level you will:

  1. Configure your EZCA SCEP CA to use a static SCEP challenge.
  2. Create an Apple management profile (.mobileconfig) file that includes the necessary CA certificate and SCEP payload to issue certificates from your EZCA SCEP CA.
  3. Update your NinjaOne policies to deploy the management profile to your iOS devices and begin issuing SCEP certificates.

Let’s get started!

How to Configure NinjaOne to Issue SCEP Certificates on iOS - Step-by-Step Guide

The following steps will guide you through the process of configuring NinjaOne to issue SCEP certificates to your iOS devices from your EZCA SCEP CA.

Prerequisites for Configuring NinjaOne with SCEP

  1. You will need a NinjaOne account with the appropriate permissions to create and deploy policies and scripts.
  2. You will need an EZCA SCEP CA set up and ready to issue certificates.

Step 1: How to Configure NinjaOne with Apple MDM for iOS Device Management

To manage and deploy Apple management profiles to your macOS, iOS, and iPadOS devices, you will first need to configure Apple MDM in NinjaOne. This involves creating an Apple MDM push certificate and uploading it to NinjaOne to establish trust between NinjaOne and Apple’s Push Notification Service (APNs). This allows NinjaOne to send management profiles, including the SCEP certificate profile we will create later, to your macOS, iOS, and iPadOS devices.

  1. Navigate to Administration > Apps > Installed and select NinjaOne MDM Apple from the list.

    NinjaOne MDM Apple App in NinjaOne Portal
  2. Click Enable to begin the process of configuring Apple MDM.

    Enable Apple MDM in NinjaOne
  3. Click + Add APNs certificate to download, sign, and upload your Apple MDM push certificate.

    Add APNs Certificate for Apple MDM in NinjaOne
  4. Click Download file to download the CSR file that you will need to sign with Apple to create your APNs certificate.

  5. Click Apple Push Certificates Portal to open the Apple Push Certificates Portal in a new tab, and sign in with your Apple ID.

  6. Click Create a Certificate, read and accept the terms, and upload the CSR file you downloaded from NinjaOne.

  7. Click Download to download the signed APNs certificate from Apple. Save this file to your computer.

    Apple Push Certificates Portal
  8. Set a calendar reminder for 30 days before the noted Expiration Date to ensure you renew your APNs certificate before it expires, as an expired APNs certificate will cause MDM management and SCEP certificate issuance to stop working until the certificate is renewed and updated in NinjaOne.

  9. Return to the NinjaOne tab and click Upload file to upload the APNs certificate you downloaded from Apple.

  10. Enter your Apple ID that you used to sign the APNs certificate in the Apple ID field, and add a descriptive name for Create APNs certificate name.

  11. Click Save to save your APNs certificate in NinjaOne and complete the Apple MDM configuration process.

    Upload APNs Certificate for Apple MDM in NinjaOne
  12. Done. You now have Apple MDM configured in NinjaOne and can deploy Apple management profiles to your macOS, iPadOS, and iOS devices.

Step 2: How to Create an Apple Management Profile with EZCA SCEP Payload for iOS

An Apple management profile is a file with a .mobileconfig extension that contains configuration settings and payloads that can be deployed to Apple devices, including macOS. To issue SCEP certificates from your EZCA SCEP CA to your macOS devices, you will need to create a management profile that includes both your CA certificate(s) and a SCEP payload configured to request certificates from your EZCA SCEP CA. You can create this file manually or use a tool like Apple Configurator 2 to create the profile through a graphical interface. Check out our Apple Configurator guide for step-by-step instructions on how to create a management profile with a SCEP payload using Apple Configurator.

Note that when you set your Subject Name and Subject Alternative Name (SAN) fields in the SCEP payload, you can use variables that will be replaced with device-specific and user-specific values when the profile is deployed. See the NinjaOne documentation for more information on their available variables and how to use them in your management profiles. You can also use Apple’s built in variables as well, in combination with NinjaOne’s variables and static values.

Variable Description
${device.location.name} This is the device’s assigned location name value.
${device.location.id} This is the device’s assigned location ID value.
${device.organization.name} This is the device’s organization’s name value.
${device.organization.id} This is the device’s organization ID value.
${device.serialNumber} This is the device’s serial number value.
${device.id} This is the device’s GUID value (unique identifier).
${device.owner.email} This is the device’s assigned user email address value.
${device.owner.firstName} This is the device’s assigned user’s first name value.
${device.owner.lastName} This is the device’s assigned user’s last name value.
${device.owner.displayName} This is the device’s assigned user’s display name value.
Create Apple Management Profile for EZCA SCEP

You should now have a .mobileconfig file that contains the necessary CA certificate(s) and SCEP payload to request certificates from your EZCA SCEP CA. In the next steps, we will upload this file to NinjaOne and configure it to be deployed to your macOS devices.

Step 3: How to Deploy Apple Management Profile with SCEP Payload to iOS Devices in NinjaOne

Now that you have your Apple management profile with the SCEP payload created, you can deploy this profile to your iOS devices using NinjaOne.

  1. In the NinjaOne portal, navigate to Administration > Policies > Agent policies and select the iOS policy you want to deploy the profile with, or create a new policy if needed.

    Edit iOS Agent Policy in NinjaOne
  2. From the left-hand menu, select Custom payload and click on the + Add payload button.

    MDM Custom Payload in NinjaOne Agent Policy
  3. Set the Name to EZCA - SCEP Certificate Profile (or a name of your choice), and click Upload file to upload the .mobileconfig file you created in the previous step.

  4. Click Add to add the custom payload to the policy.

    Add Custom Payload to NinjaOne Agent Policy
  5. In the top-right corner, click on the Save button to save your changes to the policy.

    Save NinjaOne Agent Policy

Step 4: How to Join Your iOS Devices to NinjaOne via MDM Enrollment to Receive Custom Payloads

In order for your iOS devices to receive the Apple management profile with the SCEP payload that you deployed in the previous step, they will need to be enrolled via the MDM enrollment profile method.

To enroll your iOS devices via MDM enrollment:

  1. Navigate to your NinjaOne portal.

  2. In the top-right corner, click the + button, then Device, then Mobile device.

    Add Device in NinjaOne
  3. Select Apple and fill in your organization/location/role information.

  4. Set your APNs certificate if you have more than one.

    NinjaOne iOS MDM Enrollment
  5. Click Generate QR code and distribute the generated QR Code, downloaded file, SMS, or email to your users to have them complete the enrollment process.

    NinjaOne iOS MDM Enrollment QR Code

Step 5: Verify SCEP Certificate Issuance on iOS Devices

Once your iOS devices are enrolled in NinjaOne MDM and have received the Apple management profile with the SCEP payload, they should automatically request and install SCEP certificates from your EZCA SCEP CA based on the configuration in your .mobileconfig file. You can verify that the certificates have been issued and installed correctly by checking the certificate store on the iOS device.

  1. On the iOS device, open the Settings application.
  2. Navigate to General > VPN & Device Management.
  3. Look for the SCEP certificate that was issued from your EZCA SCEP CA. You can verify the issuer and other details of the certificate by tapping on it to open the certificate viewer.

Enjoying EZCA? Leave Us a Review!

We hope you’re enjoying using EZCA to issue your SCEP certificates in NinjaOne! If you have a moment, we would greatly appreciate it if you could leave us a review on G2. Your feedback helps other IT professionals discover EZCA and helps us continue to improve our service. Thank you for your support!