Web Analytics

S/MIME Certificate Management with Microsoft Intune using SSL.com Azure Integration Tool

Introduction

Microsoft Intune allows for the integration of imported PFX certificates, which are often used for S/MIME encryption in email profiles. Intune supports the import of PFX certificates across these platforms:

  • Android device administrator
  • Android Enterprise:
    • Fully Managed
    • Corporate-Owned Work Profile
    • Personally-Owned Work Profile
  • iOS/iPadOS
  • macOS
  • Windows 10/11

Understanding S/MIME Certificate Deployment Using Intune

When Intune is used to deploy an imported PFX certificate to a user, two key components play a role alongside the device:

  • Intune Service: This service securely stores the PFX certificates in an encrypted format and manages their deployment to the user’s device. The passwords that protect the private keys of these certificates are encrypted before being uploaded, using either a hardware security module (HSM) or Windows Cryptography. This ensures that Intune never has access to the private keys.
  • Certificate Connector for Microsoft Intune: When a device requests an imported PFX certificate, the encrypted password, certificate, and device public key are forwarded to the connector. The connector decrypts the password using the on-premises private key, then re-encrypts the password with the device key. The certificate is then returned to Intune, which delivers it to the device. The device decrypts it with its own private key and installs the certificate.

Specific Roles of Actors

  • Entra ID: Functions as the main identity provider, integrating with various Microsoft services and enterprise applications.
  • Intune: Manages devices that are enrolled in the system, applies security policies, and deploys certificates.
  • S/MIME Certificates: Provided by SSL.com, these certificates ensure secure email communication through encryption and email signing.
  • Entra Connect: Links on-premises Active Directory with Azure Entra ID to provide a hybrid identity solution.
  • Devices: These are enrolled in Intune and secured with certificates, giving users safe access to corporate resources.

Workflow Summary

  1. The organization registers their enterprise app in Entra ID.
  2. The enterprise app details are also registered with SSL.com.
  3. Intune administrators purchase certificates for users from SSL.com.
  4. During the purchase, the administrators select the purpose of the certificate, such as general use, S/MIME Encryption, or S/MIME Signing.
  5. The PFX certificate is then imported into Intune for the user’s account.
  6. Intune connects with the Intune connector to validate the certificate.
  7. Once validated, Intune deploys the certificate to the user’s device.

The specific steps for the workflow and integration are discussed in the following sections.

Strengthen your email security and protect sensitive data with SSL.com S/MIME certificates.

Secure Your Email

How to Configure Microsoft Intune and Microsoft Active Directory for S/MIME Certificates

Prerequisites

Listed below are the prerequisites for the API. These need to be configured on the Intune tenant to which certificates will be imported from SSL.com.

  • An account with Intune Administrator rights.
    Add users and grant permissions – Microsoft Intune | Microsoft Learn
  • All the users for whom the PFX certificate is imported should have Intune license assigned.
    Assign Microsoft Intune licenses | Microsoft Learn
  • Intune certificate connector installed and configured on a Windows server.
    Install the Certificate Connector for Microsoft Intune – Azure | Microsoft Learn
  • Public key exported from Intune connector server.
    Use imported PFX certificates in Microsoft Intune | Microsoft Learn
  • Create Enterprise application in Microsoft Entra

    This guide assumes that the Enterprise app will already be created at the tenants and SSL.com will have the information about the registered enterprise app. The process to register the Enterprise app (using Entra portal) is explained below.

    1. Login to portal.azure.com and search for Microsoft Entra ID
    2. Click Enterprise applications
    3. Click New application
    4. Click Create your own application
    5. Enter the name of the application and click Create
    6. Application is now created successfully.
    7. Click App registrations
    8. Click All applications
    9. Select the Application.
      Note the Application ID and the Directory ID: these  need to be passed to API.
    10. Click Certificates & secrets and then select New client secret
    11. Click Authentication and add the Web Redirect URLS of SSL.comRedirect URLs are https://secure.ssl.com/oauth2/azure for Production and https://sandbox.ssl.com/oauth2/azure for Sandbox
    12. Provide a name to the key and click Add
      Note the value of the Key. This needs to be passed to the API.
  • Set up a PKCS certificate import profile
    Once the certificates are imported into Intune, configure a PKCS certificate import profile and assign it to relevant Microsoft Entra groups. Detailed steps are available in this Microsoft guide.

Permission requirements for Enterprise application to import the certificate

  1. Under App registrations >> application name, click API Permissions.
  2. Click Add a permission.
  3. Click Microsoft Graph.
  4. Click Delegated Permissions and search for user.read. Check the boxes for User.Read and User.Read.All.
  5. Click Delegated permissions and search for “group”. Check the box for Group.ReadWrite.All.
  6. Click Delegated Permissions and search for “DeviceManagementApps”. Check the box for DeviceManagementApps.ReadWrite.All.
  7. Search for “DeviceManagementConfiguration”. Check the boxes for DeviceManagementConfiguration.Read.All and DeviceManagementConfiguration.ReadWrite.All. Proceed to click the Add permissions button.
  8. Click Add a permission.
  9. Select Microsoft Graph.
  10. Click Application permissions and search for “user.read”. Check the boxes for User.Read.All and User.ReadWrite.All.
  11. Click Application permissions and search for “group”. Check the box for Group.ReadWrite.All.
  12. Click Application permissions and search for “deviceManagementApps”. Check the box for DeviceManagementApps.ReadWrite.All
  13. Click Application permissions and search for “DeviceManagementService”. Check the box for DeviceManagementService.ReadWrite.All
  14. Search for “DeviceManagementConfiguration” and check the boxes for DeviceManagementConfiguration.Read.All and DeviceManagementConfiguration.ReadWrite.All. Proceed to click the Add Permissions button.
  15. Once all the rights are assigned, click Grant admin consent for Contoso.
  16. Click Yes to grant the permission
  17. The permission should now be granted successfully.

How to Export Certificates to Azure Active Directory Using SSL.com Azure Integration Tool

The following sections provide instructions on how to use the SSL.com Azure Integration Tool to export certificates to Azure Active Directory. 

Requirements from SSL.com

  1. An active Identity pre-validation agreement also known as an Enterprise PKI (EPKI) Agreement. Find instructions here (Enterprise PKI (EPKI) Agreement Setup) to submit and activate this agreement. Once activated, the steps in the next section can be performed.
  2. Configured Microsoft Entra and Intune account, as described in this previous section: How to Configure Microsoft Intune and Microsoft Active Directory for S/MIME Certificates.

Configure Azure Sync

  1. Login to your SSL.com account and click Integrations on the top menu. From the listed options,, click Azure AD.

  2. Fill out the required fields for Azure integration. Afterwards, click the Save button.

    1. Client ID. Application (client) ID.
    2. Client Secret. Copy client secret(s) value from client credentials.
    3. Tenant ID. Directory (tenant) ID.
    4. Intune Public Key. Base64 version of the Public key exported from Intune connector server. For more details, check out this Microsoft resource.

Use the SSL.com Azure Integration Tool for Issuance of S/MIME certificates

  1. Once the Azure setting has been created. Click the Authorize link. 

  2. Click Azure Users so that the list of users from Azure can be imported to SSL.com’s system.
  3. SSL.com will show the list of Azure users, indicated by their first name, last name, and email address. Tick the check box for all the users that will be assigned with a certificate. If you need to import more users, click the Import users button. Upon finalization, click the Enroll Certificate button to proceed.

  4. Accomplish the requirements for the certificate.
    1. Certificate: Choose the type of certificate you want to assign for the selected users.
    2. Duration: Specify the length of time before the certificate expires. 

    3. Intended Purpose: Choose among General Purpose, SMIME Encryption, or SMIME Signing.
    4. After the choices are finalized, click the Add button.

  5. Each user will be assigned a new certificate order from here. The process will then proceed to order validation and certificate issuance.

Related Guides: 

LDAP, or Lightweight Directory Access Protocol, is a widely recognized standard for managing directory information services, including user and group data within a network. Just like Azure Active Directory, LDAP provides robust management of digital certificates, though the two systems employ distinct security protocols. 

If you are looking to manage your S/MIME certificates with a service that uses LDAP, please refer to this SSL.com article: LDAP Integration with S/MIME Certificates.

Subscribe To SSL.com’s Newsletter

Don’t miss new articles and updates from SSL.com

Stay Informed and Secure

SSL.com is a global leader in cybersecurity, PKI and digital certificates. Sign up to receive the latest industry news, tips, and product announcements from SSL.com and stay informed of the latest changes about digital identity and encryption that can impact and enhance your life.

We’d love your feedback

Take our survey and let us know your thoughts on your recent purchase.