Skip to content
Intune SCEP with Joy – Learn how to use unique certificate templates to deploy different SCEP certificates within the same environment

Intune SCEP with Joy – Learn how to use unique certificate templates to deploy different SCEP certificates within the same environment

Written By Joymalya Basu Roy
Last Updated June 24, 2024
Posted In Intune
SHARE

Today, we will discuss Intune SCEP with Joy – Learn how to use unique certificate templates to deploy different SCEP certificates within the same environment.

There may be a scenario where you must use different templates to deploy different SCEP certificates to your Intune-managed endpoints.

For example, you may require that the SCEP certificate be deployed to group A to use template A and group B to use template B. A unique SCEP certificate will be deployed for the different profiles—email, VPN, and Wi-Fi.”

The above has always been a supported scenario and is in use in many enterprise environments.

Patch My PC
Index
Understanding the Logic – Intune SCEP with Joy
Proof Of Concept
Intune SCEP with Joy – Learn how to use unique certificate templates to deploy different SCEP certificates within the same environment – Table 1

Understanding the LogicIntune SCEP with Joy

The Extended Key Usage (EKU) parameter determines that the primary use case of an SCEP certificate is to serve client authentication.

The SCEP certificate template configured in CA must add Client Auth to its EKU.

Intune SCEP with Joy - Learn how to use unique certificate templates to deploy different SCEP certificates within the same environment - Fig.1
Intune SCEP with Joy – Learn how to use unique certificate templates to deploy different SCEP certificates within the same environment – Fig.1

You define the same while configuring the SCEP certificate profile from Intune.

Intune SCEP with Joy - Learn how to use unique certificate templates to deploy different SCEP certificates within the same environment - Fig.2
Intune SCEP with Joy – Learn how to use unique certificate templates to deploy different SCEP certificates within the same environment – Fig.2

Note: Selecting EKU as Any Purpose suffices for the obtained certificate to be used for auth purposes, as long as the certificate template used for creating the certificate has Client Authentication selected in its EKU.

However, the template that NDES (SCEP service) will use to make the on-behalf certificate request to the CA is determined based on the value of the Key Usage parameter of the Certificate Signing Request (CSR) that the device sends to the SCEP service, upon receiving the instructions from Intune as part of the SCEP payload.

Intune SCEP with Joy - Learn how to use unique certificate templates to deploy different SCEP certificates within the same environment - Fig.3
Intune SCEP with Joy – Learn how to use unique certificate templates to deploy different SCEP certificates within the same environment – Fig.3

When the SCEP service receives the certificate request from a device, it inspects the CSR to get the value for the Key Usage parameter and, based on it, determines the template to be used for making the certificate request to CA on-behalf, as defined in the reg_keys under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\MSCEP.

Intune SCEP with Joy - Learn how to use unique certificate templates to deploy different SCEP certificates within the same environment - Fig.4
Intune SCEP with Joy – Learn how to use unique certificate templates to deploy different SCEP certificates within the same environment – Fig.4

While configuring the SCEP certificate profile in Intune, based on the selection of Key Usage

  • Digital signature (=SignatureTemplate in MSCEP reg)
  • Key encipherment (=EncryptionTemplate in MSCEP reg)
  • Digital signature and Key encipherment (=GeneralPurposeTemplate in MSCEP reg)

You can configure SCEP certificate deployment for specific purposes using up to 3 unique certificate templates configured in your CA. 

Proof Of Concept

As seen from the snaps below, I have configured three unique SCEP profiles in my test tenant and made three unique assignments.

NOTE: An important Effective Group Association calculation validation step is carried out in the backend (Azure AD functionality) when you actively assign a SCEP profile from Intune. This checks and determines the association of the SCEP profile with the Trusted Certificate profile (for Root CA cert or Issuing CA cert based on your PKI infrastructure) defined within the profile. If this check fails to determine the association, the deployment fails at the initial stages, and since this step is performed in the backend, you also do not get any logs for the same.

For this reason, Microsoft recommends deploying the Trusted Certificate profile, which is linked with the SCEP profile, and the SCEP Certificate profile to the same group. For more information, refer to the Microsoft article here.

Intune SCEP with Joy - Learn how to use unique certificate templates to deploy different SCEP certificates within the same environment - Fig.5
Intune SCEP with Joy – Learn how to use unique certificate templates to deploy different SCEP certificates within the same environment – Fig.5

However, in our case, this would defy the purpose if we have to deploy to the same group.

We aim to deliver unique SCEP certificates to unique deployment groups using unique templates from the CA.

My SCEP lab is based on a multi-tier PKI infrastructure where I have a Root CA and a Sub CA, and the Sub CA is the Issuing CA for my NDES box.

What did I do?

I deployed the Trusted Cert profile for the Issuing CA (essentially defined as the Root Certificate within all my SCEP profiles) to All Devices (since my deployment is based on device groups). Then, I made a unique assignment for each of the 3 SCEP profiles.

Intune SCEP Certificate Workflow Analysis—If you have not read my previous article on SCEP, which explains the above, check this post.

This satisfies the Effective Group Association calculation, and as you can see, all three profiles have the success status, as shown below.

If you check the Issued Certificates on the CA, you will see that the three issued certificates are generated using the unique templates as intended.

Intune SCEP with Joy - Learn how to use unique certificate templates to deploy different SCEP certificates within the same environment - Fig.9
Intune SCEP with Joy – Learn how to use unique certificate templates to deploy different SCEP certificates within the same environment – Fig.9

Above, I showed how you can have three unique templates configured in CA to serve specific use-case scenarios.

Similarly, you can use a single CA template to serve both Device-based and User-based SCEP certificates to the endpoints—essentially because we configure the template to provide details (CN and SAN) on request.

Well, that was all for today. I hope this helps you plan SCEP certificate deployments in your environment if you ever face a similar requirement.

Stay safe!

We are on WhatsApp. To get the latest step-by-step guides and news updates, Join our Channel. Click here –HTMD WhatsApp.

Author

Joymalya Basu Roy is an experienced IT service professional with almost five years of experience working with Microsft Intune. He is currently working as a Senior Consultant – Architect with Atos India. He is an ex-MSFT, where he worked as a Premiere Support Engineer for Microsoft Intune. He was also associated with Wipro and TCS in the early stages of his career. He was awarded the Microsoft MVP award for Enterprise Mobility in 2021. You can find all his latest posts on his blog site, MDM Tech Space, at https://joymalya.com

Written by

Joymalya Basu Roy is an experienced professional in the IT services field with almost 5 years of experience working with Microsft Intune. He is currently working as a Senior Consultant - Architect with Atos India. He is an ex-MSFT where he worked as a Premiere Support Engineer for Microsoft Intune. He was also associated with Wipro and TCS in the early stages of his career. He is awarded the Microsoft MVP award for Enterprise Mobility in 2021. You can find all his latest posts on his own blog site MDM Tech Space at https://joymalya.com

Discussion · 1 comment

  1. Hi Anoop,
    I”m noe to Intune and I have two quires on Intune deployment
    1)If we have multiple exe ,then how to convert as intunewin format for Win-32 deployment
    2)If it’s multiple MSI’s bundle , then how to deploy in intune as LOB application

Join the discussion

Your email address will not be published. Required fields are marked *

Related guides

Intune

Simplify Windows Devices to Run Only the Required Applications using Intune

Key Takeaways Hey, let’s learn about Simplify Windows Devices to Run Only the Required Applications using Intune. This policy lets administrators replace the default windows shell with a custom or lightweight shell. it improves performance by using system resources and is useful for devices that run a dedicated application. If the policy is disabled or […]

AC Anoop C Nair 8 min read
Intune

Enhance macOS Compliance with Custom Security and Compliance Checks to Improve Device Security using Microsoft Intune

Key Takeaways In this post we are discussing about Enhance macOS Compliance with Custom Security and Compliance Checks to Improve Device Security using Microsoft Intune. Microsoft has announced the general availability of Custom Compliance Settings for macOS in Microsoft Intune. The feature helps organizations strengthen security controls while supporting many types of macOS management scenarios. […]

AC Anoop C Nair 4 min read
Intune

Manage Samsung Galaxy Firmware Versions to Improve Security and Compliance using Microsoft Intune

Key Takeaways In this post we are discussing Manage Samsung Galaxy Firmware Versions to Improve Security and Compliance using Microsoft Intune. Microsoft Intune has received a new update that expands firmware management capabilities for Samsung Galaxy devices through Firmware Versionsintegration. This enhancement gives IT administrators more control over firmware and operating system updates, helping them […]

AC Anoop C Nair 4 min read
Intune

MS Intune Adds Windows Registry Data Collection to Device Inventory for Single Values All Key Values and Subkeys

Key Takeaways Microsoft Intune 2607 introduces Windows Registry Data collection in Device Inventory, allowing IT admins to verify actual device configurations without relying on custom discovery or remediation scripts. Using the Properties Catalog, admins can collect registry information through Single Value, All Values Under a Key (Non-Recursive), or Same Value Across Subkeys. MS Intune Adds […]

AC Anoop C Nair 5 min read