Configure certificate-based access in Entra ID with Conditional Access certificates
In this topic, you will find instructions on how to enable and configure certificate-based access (CBA) in Microsoft Entra ID and use Conditional Access certificates managed by Portnox AgentP for safe and quick Entra ID authentication.
Download the tenant CA certificate from Portnox Cloud
In this section, you will download the Portnox™ Cloud tenant CA certificate from the Cloud portal and convert it to the DER encoded binary X.509 format that is required by Entra ID.
-
In the Cloud portal top menu, click on the Settings option.
-
In the right-hand side pane, find and click on the CLEAR GENERAL SETTINGS heading.
More options appear under the CLEAR GENERAL SETTINGS heading and description.
-
Scroll down to the TRUSTED ROOT CERTIFICATES section and click on the
Download link, then save the downloaded file.
The default name of the file is Your_tenant_name - Portnox CLEAR.pfx, for example, Portnox - Portnox CLEAR.pfx.
-
In Windows, right-click on the downloaded file and select Open from the context menu.
The file will be opened in the Windows certificate manager.
-
In the certificate manager window, open the Certificates section in the left-hand pane and
then double-click on Portnox - Portnox CLEAR in the right-hand side pane.
-
In the Certificate window, click on the Details tab and then click on
the Copy to File button.
-
In the Certificate Export Wizard, export the certificate in the DER encoded binary X.509
format.
Add the downloaded tenant certificate to Entra ID
In this step, you will access your Azure Portal and add the downloaded certificate to your Entra ID configuration as a root certificate authority.
- Open your Azure Portal dashboard.
-
In the Azure Portal main menu, click on the Microsoft Entra ID option.
You can access the main menu by clicking on the icon in the top left corner of the Azure Portal.
-
In the left-hand side menu, scroll down to the bottom of the Manage section, and then click
on the Security option.
-
In the left-hand side menu, in the Manage section, click on the Certificate
authorities option.
-
In the Certificate authorities pane, click on the Upload
button.
-
In the Upload certificate file pane, click on the 🗀
icon and select the downloaded tenant certificate file that you converted to the DER binary X.509 format. In the
Is root CA certificate section, select the Yes option, and then
click on the Add button.
Result: You added the tenant certificate as a certificate authority in Entra ID.
Enable certificate-based authentication in Entra ID
In this step, you will enable the certificate-based authentication functionality in Entra ID, configure it to verify user certificates based on the added certificate authority, and enable this functionality for users.
-
In the left-hand side menu, in the Manage section, click on the Authentication
methods option.
-
In the left-hand side menu, make sure that the Policies option is selected.
-
In the Policies pane, click on the Certificate-based authentication
link in the Method column.
-
In the Certificate-based authentication settings pane, in the Enable and
Target tab, activate the Enable switch. Then, in the section below, select
the user groups that will be using certificate-based authentication, and click on the Save
button.
Warning: We recommend to initially test this functionality on a group of users before enabling it for all users. If you configure this functionality incorrectly, users may be unable to log in.
-
In the Configure tab, in the Protection Level field, select the
Multi-factor authentication option, and then click on the Add rule
button below.
-
In the Add authentication binding policy rule pane, activate the Certificate
issuer checkbox, and in the Certificate issuer identifier field, select the
identifier of the certificate authority that you added earlier. In the Authentication
strength section, select the Multi-factor authentication option. In the
Affinity binding section, select the Low option. Then, click on
the Add button.
-
In the Certificate-based authentication settings pane, click on the
Save button.
Test the certificate-based authentication
In this section, you will log in to Microsoft 265 as one of the users that you configured for certificate-based authentication (CBA).
- Make sure that you install and run AgentP on your test machine, and that you enroll in AgentP as the user that you will attempt to authenticate as in Microsoft 365.
- Log in to Microsoft 365 by clicking on the following link: https://www.office.com/login.
-
Sign in as the same user that is enrolled in your AgentP and that you configured for certificate-based
authentication.
-
You should see a certificate selection window. Select the certificate for the user, and then click on the
OK button.
Note: Depending on how you configured the priority of authentication methods in Entra ID, you may see a prompt to enter a password. If so, click on the Other ways to sign in link, and then select the Use a certificate or smart card option.
Result: If the test is successful, you will be logged in to Microsoft 365.