How-To: Issue SCEP Certificates to macOS Devices with Intune

In this page we will guide you on how to create an Intune profile to issue X509 certificates either for devices or users using SCEP for MacOS.

Introduction - How to Issue SCEP Certificates to macOS Devices with Intune

This guide shows how to issue X509 certificates to macOS devices with Microsoft Intune and SCEP. You will create:

  1. A Trusted Certificate profile to establish trust with your CA chain.
  2. A SCEP Certificate profile to request and install certificates for users or devices.

By the end, your macOS devices will be able to enroll and receive certificates from your EZCA SCEP CA.

Prerequisites for Issuing SCEP Certificates to macOS Devices with Intune

Before you begin, confirm the following prerequisites:

  1. You have created an Intune SCEP CA.
  2. You have registered the Keytos Intune application in your Entra ID tenant.
  3. You are an Intune administrator with permissions to create configuration profiles in Intune.

How to Issue SCEP Certificates to macOS Devices with Intune - Step by Step Guide

In this section, you will first create a Trusted Certificate profile to deploy CA certificates, then create a SCEP Certificate profile for certificate enrollment.

How to Download Your CA Certificates from EZCA

To issue certificates to your macOS devices using Intune, you first need to download the CA certificate from your EZCA portal and upload it to Intune as a trusted certificate. Follow these steps to download your CA certificate from EZCA:

  1. Navigate to your EZCA portal instance, such as portal.ezca.io.
  2. From the left-hand menu, select Certificate Authorities.
  3. Find the CA you created for Intune and click on the View Details button.
  4. For your CA’s region(s), click on the Download Certificate button to download the CA certificate.
  5. Repeat the previous step for each CA in your PKI chain. If you have a Root CA and an Intermediate CA, make sure to download both certificates.

How to Create an Intune Trusted Certificate Profile for macOS Devices

Before issuing certificates, devices must trust your issuing chain.

Follow these steps for macOS devices:

  1. Go to https://aka.ms/intuneportal

  2. Select: Devices > macOS > Configuration profiles.

  3. Click Create profile.

  4. Select Templates as the profile type.

  5. Select the Trusted Certificate template.

    How to Create macOS Trusted Certificate in Intune
  6. Click Create.

  7. Enter the Name and Description for this Intune certificate profile.

    Create macOS Trusted Certificate in Intune
  8. Upload the CA certificate you downloaded from EZCA.

  9. Select your Assignments and complete the profile creation.

  10. Repeat these steps for each CA certificate in your chain (Root CA and Issuing CA as applicable).

  11. Done! Your managed macOS devices will now trust certificates issued by your EZCA CA chain.

How to Create an Intune SCEP Profile for macOS Certificates

You can issue either device certificates or user certificates, depending on your scenario:

  1. Use device certificates for machine identity and device-based authentication.
  2. Use user certificates for user identity use cases.
  3. If needed, deploy both profile types.

Use the tabs below for the profile type you want to configure.

How to Create an Intune SCEP Profile for Device Certificates

The following steps will guide you on how to create an Intune SCEP profile to issue device certificates to your macOS devices.

  1. Go back to the macOS configuration profiles page and click Create profile.

  2. Select Templates as the profile type.

  3. Select the SCEP Certificate template.

    Create macOS SCEP Certificate in Intune
  4. Click Create.

  5. Enter the Name for this Intune SCEP profile.

  6. For Certificate type, select Device.

  7. For Subject name format, enter CN={{AAD_Device_ID}} or CN={{DeviceId}} depending on your preference. Intune replaces these variables with the actual device ID at enrollment time.

    • {{AAD_Device_ID}} uses the Azure AD device ID (recommended in most cases).
    • {{DeviceId}} uses the Intune device ID.
  8. In Subject Alternate Name, select URI attribute and enter IntuneDeviceId://{{DeviceId}}.

  9. For Certificate Validity Period, enter the same period you entered in EZCA.

  10. For Key Usage, select both Digital Signature and Key Encipherment.

  11. For Key Size, select 4096.

  12. For Hash Algorithm, select SHA-2.

  13. In the Root Certificate field, click + Root Certificate and select the CA profile created in the Create Trusted Certificate Profile section.

  14. For Extended Key Usage, select Client Authentication (1.3.6.1.5.5.7.3.2).

  15. Feel free to leave the Renewal Percentage at 20% or increase it to a value you feel comfortable with. This is the lifetime remaining before Intune attempts to renew the certificate. For example, if you set it to 20% and your certificate validity period is 1 year, Intune will attempt to renew the certificate when it has 2.4 months remaining before expiration.

  16. Review your settings. Your setup should look similar to this:

    Create macOS SCEP Device Certificate Profile in Intune
  17. In the EZCA portal, go to Certificate Authorities and click View Requirements for your Intune CA.

    EZCA Cloud PKI View All CAs
  18. Copy the Intune SCEP URL.

    Get the Intune CA SCEP URL from EZCA
  19. Return to Intune and paste the URL in SCEP Server URLs.

    Add SCEP Server URL to Intune macOS device
  20. Click Next.

  21. Select your Assignments, review, and click Create.

  22. Done! Your managed macOS devices will now begin receiving device certificates from your EZCA SCEP CA.

How to Create an Intune SCEP Profile for User Certificates

The following steps will guide you on how to create an Intune SCEP profile to issue user certificates to your macOS devices.

  1. Go back to the macOS configuration profiles page and click Create profile.

  2. Select Templates as the profile type.

  3. Select the SCEP Certificate template.

    Create macOS SCEP Certificate in Intune
  4. Click Create.

  5. Enter the Name for this Intune SCEP profile.

  6. For Certificate type, select User.

  7. For Subject name format, use CN={{UserName}},E={{EmailAddress}}.

  8. In Subject Alternate Name, select User Principal Name (UPN) and enter {{UserPrincipalName}}.

  9. For Certificate Validity Period, enter the same period you entered in EZCA.

  10. For Key Usage, select both Digital Signature and Key Encipherment.

  11. For Key Size, select 4096.

  12. For Hash Algorithm, select SHA-2.

  13. In the Root Certificate field, click + Root Certificate and select the CA profile created in the Create Trusted Certificate Profile section.

  14. For Extended Key Usage, select Client Authentication (1.3.6.1.5.5.7.3.2).

  15. Feel free to leave the Renewal Percentage at 20% or increase it to a value you feel comfortable with. This is the lifetime remaining before Intune attempts to renew the certificate. For example, if you set it to 20% and your certificate validity period is 1 year, Intune will attempt to renew the certificate when it has 2.4 months remaining before expiration.

  16. Review your settings. Your setup should look similar to this:

    Create macOS SCEP User Certificate Profile in Intune
  17. In the EZCA portal, go to Certificate Authorities and click View Requirements for your Intune CA.

    EZCA Cloud PKI View All CAs
  18. Copy the Intune SCEP URL.

    Get the Intune CA SCEP URL from EZCA
  19. Return to Intune and paste the URL in SCEP Server URLs.

    Add SCEP Server URL to Intune macOS device
  20. Click Next.

  21. Select your Assignments, review, and click Create.

  22. Done! Your managed macOS devices will now begin receiving user certificates from your EZCA SCEP CA.