Configure Intune

The following sections cover how to configure Intune for Device Certificate Enrollment.

Prerequisite: Set up Intune

Before configuring Intune for Device Certificate Enrollment, it is assumed that Intune is set up according to instructions in the Microsoft doc Set up Intune.

Configure Intune for Device Certificate Enrollment

Follow the steps outlined below to configure Intune for Device Certificate Enrollment:

Add a Test User

As an administrator, you can add users that once added can enroll devices and access company resources.

Follow the steps below to add an Intune test user.

  1. Log in to Intune (https://aka.ms/intuneportal).

  2. Select Users, and then click New user.

  3. On the User page, specify the required information and then click Create.

    • Name: Specify a name. In this example, SCEP User.

    • User name: The user name of the new user. In this example, scepuser@c2company.com.
      images/download/attachments/143750296/image2019-10-1_19-2-45.png

Add a Test Group

Use the following steps to create a new group.

  1. Select Groups and then click New group in the All groups pane.

  2. On the New Group page, specify the following and then click Create.

    • Specify a Group name. In this example, SCEPTEST.

      images/download/attachments/143750296/image2019-10-1_18-50-32.png
  3. To add members to the group, select Members and click Add Members.

  4. Select the SCEP User and then click Select to add the member.

    images/download/attachments/143750296/Screen_Shot_2019-10-02_at_3.10.14_PM.png

Assign an Intune License to the User

You must assign each user an Intune license before users can enroll their devices in Intune.

Use the following steps to assign an Intune license to the added user.

  1. Click Users, select the added SCEP User, and then click Licenses.

    images/download/attachments/143750296/image2019-10-1_19-3-38.png
  2. Click Assign and then on the Assign license page, select Products Configure required settings.

  3. Select the Intune product, click Select and then click Assign.

Authorize Communication between CA and Intune

To allow a third-party SCEP server to run custom challenge validation with Intune, create an app in Azure Active Directory (AD). This app gives delegated rights to Intune to validate SCEP requests. For more information, refer to the Microsoft doc Set up third-party CA integration.

To authorize communication between EJBCA and Intune, create an application in Azure Active Directory, following the steps below.

  1. Log in to the Azure Portal (https://portal.azure.com/).

  2. Select Azure Active Directory > App Registrations, and then click New registration.

  3. On the Register an application page, specify the following:

    • Enter a Name of the application, for example, SCEP_API_registration.

    • In Supported account types, select Accounts in any organizational directory.

    • For Redirect URI, leave the default of Web, and then specify a redirect URL, for example, http://localhost .

  4. Click Register to create the application and to open the Overview page for the new app.

  5. On the app Overview page, take note of the Application (client) ID as you will need this value later.

    images/download/attachments/143750296/image2019-10-1_19-19-54.png
  6. Select Certificates & secrets under Manage, and click New client secret.

  7. Specify a Description, select any option for Expires, and then click Add to generate a value for the client secret.

  8. Take note of the new client secret value before you leave the page.

    images/download/attachments/143750296/image2019-10-1_19-23-37.png
  9. Record your Tenant ID. The Tenant ID is the domain text after the @ sign in your account. For example, if your account is admin@name.onmicrosoft.com, then your tenant ID is name.onmicrosoft.com.

  10. Select API permissions under Manage and then do the following to add three separate application permissions:

    • Click Add a permission.

      • On the Request API permissions page, select Intune, and then click Application permissions.

      • Select the permission scep_challenge_provider (SCEP challenge validation), and click Add permissions to save the configuration.

    • Click Add a permission again.

      • On the Request API permissions page, select Microsoft Graph > Application permissions.

      • Expand Application and select Application.Read.All (Read all applications), and click Add permissions to save the configuration.

  11. On the API permissions page under Grant consent, click Grant admin consent for <Tenant name>, and then click Yes in the confirmation panel.

    images/download/attachments/143750296/intune-permissions.png

Configure Intune for Windows 10

To configure Intune for Windows 10 Device Enrollment, do the following:

  1. Log in to the Intune portal (https://aka.ms/intuneportal).

  2. Select Device enrollment.

  3. If not already configured, you will be prompted to choose the Mobile Device Management Authority (MDM Authority). For this example, select Intune MDM Authority, and then click Choose.

  4. Select Windows enrollment under Manage, and click AutomaticEnrollment.

  5. On the Configure page, change the MDM user scope to Some, select group sceptest, and then click Save to store the configuration.

    images/download/attachments/143750296/image2019-10-1_19-40-52.png

Configure Intune Trusted Certificates and SCEP Certificate Profile

The following provides steps to follow to configure the different Intune Trusted Certificates and the SCEP Certificate Profile.

Create Trusted Certificate Profile for EJBCA Root CA

Follow the steps below to create the Trusted Certificate Profile for the EJBCA Root CA:

  1. Select Device configuration, then select Profiles under Manage, and click Create profile.

  2. On the Create profile page, specify the following:

    • Enter the profile Name: WIN10_RootCA_Cert.

    • For Platform, specify Windows 10 and later.

    • For Profile type, select Trusted certificate.

  3. Click Settings:Configure, upload the EJBCA Root Certificate in DER format, select the Destination store=Computer certificate store - Root, and then click OK.

  4. Select Assignments under Manage, and then click Select groups to include.

  5. On the Select groups to include panel, select the sceptest group, click Select, and then click Save.images/download/attachments/143750296/select_sceptest_goup_and_oselect.png

Create Trusted Certificate Profile for EJBCA Issuing CA

Follow the steps below to create the Trusted Certificate Profile for the EJBCA Issuing CA:

  1. Select Device configuration, then select Profiles under Manage, and click Create profile.

  2. On the Create profile page, specify the following:

    • Enter the profile Name: WIN10_IssuingCA_Cert.

    • For Platform, specify Windows 10 and later.

    • For Profile type, select Trusted certificate.

  3. Click Settings:Configure, upload the EJBCA Issuing CA Certificate in DER format, select the Destination store=Computer certificate store - Intermediate, and then click OK.

  4. Select Assignments under Manage, and then click Select groups to include.

  5. On the Select groups to include panel, select the sceptest group, click Select, and then click Save.

Create Trusted Certificate Profile for EJBCA RootCA in Computer Certificate Intermediate Store

The certificates are added to the Windows 10 computer certificate Trusted Intermediate store. In order for the Root CA to be removed from the Windows 10 computer certificate Trusted Intermediate store when the device is removed from Intune, the following profile will need to be added.

Follow the steps below to create the Trusted Certificate Profile for the EJBCA RootCA in the Computer certificate store - Intermediate:

  1. Select Device configuration, then select Profiles under Manage, and click Create profile.

  2. On the Create profile page, specify the following:

    • Enter the profile Name: WIN10_RootCA_Cert_Intermediate.

    • For Platform, specify Windows 10 and later.

    • For Profile type, select Trusted certificate.

  3. Click Settings:Configure, upload the EJBCA Issuing CA Certificate in DER format, select the Destination store=Computer certificate store - Intermediate, and then click OK.

  4. Select Assignments under Manage, and then click Select groups to include.

  5. On the Select groups to include panel, select the sceptest group, click Select, and then click Save.

Create SCEP Certificate Profile

Follow the steps below to create the SCEP Certificate Profile:

  1. Select Device configuration, then select Profiles under Manage, and click Create profile.

  2. On the Create profile page, specify the following:

    • Enter the profile Name: WIN10_SCEP_certificate_profile.

    • For Platform, specify WIndows 10 and later.

    • For Profiletype, select SCEP Certificate.

  3. Click Settings:Configure, and specify the following:

    • Certificate type: Device.

    • Subject name format: CN={{Device_Serial}}

      If a DN structure is configured in the EJBCA End Entity Profile the structure must be asserted in the Subject Name Format. e.g., CN={{Device_Serial}},OU=Intune Devices,O=PrimeKey,C=SE

    • Certificate validity period: 1 Year.

    • Key storage provider (KSP): Enroll to Trusted Platform Module (TPM) KSP if present, otherwise Software KSP.

    • Key usage: Digital signature and Key Encipherment.

    • Key size: 2048.

    • Hash algorithm: SHA-2.

    • Root Certificate: WIN10_IssuingCA_Cert.

      For Windows devices the Sub CA or Issuing CA certificate should be used for the Root Certificate. For Apple and Andriod devices use the Root CA certificate.

    • Extended key usage: Select Predefined values=Client Authentication to populate the Name and Object Identifier fields, and then click Add.

    • SCEP Server URLs: Specify https://<fqdn>/ejbca/publicweb/apply/scep/<EJBCA SCEP Alias>to be the URI of EJBCA, and then click Add.

      Windows devices append the /pkiclient.exe to end of the URL. Apple and Android policies should add the /pkiclient.exe to the end of the URL.

      images/download/attachments/143750296/image2019-10-1_20-11-41.png

  4. Select Assignments under Manage, and then click Select groups to include.

  5. On the Select groups to include panel, select the sceptest group, click Select, and then click Save.

Next Step: Enroll Windows 10 Devices to Intune

Next, Enroll Windows 10 Devices to Intune.