> ## Documentation Index
> Fetch the complete documentation index at: https://docs.truu.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Configure Entra ID and CBA and Cloud Trust

> To utilize Microsoft Entra's (Azure) certificate-based authentication (CBA) feature, customers can configure their Microsoft Entra (Azure) tenant to support user authentication via X.509 certificates. These certificates are verified against the TruU Cloud Public Key Infrastructure (PKI), facilitating a more secure login process for both apps and browsers. This method of authentication is considered phishing-resistant due to the utilization of an X.509 certificate. When users attempt to sign in, they will be presented with the option to authenticate using a certificate rather than entering a password. In cases where multiple applicable certificates are found on the device, users are able to choose which certificate they wish to authenticate with. The selected certificate undergoes validation, user account binding is confirmed, and if these checks are successful, the user is granted access. Before proceeding with the configuration, it is crucial to ensure that certain prerequisites are met. For detailed instructions, the Microsoft guide on how to configure Microsoft Entra certificate-based authentication should be consulted.

**Prerequisites:**

* Obtaining either the Global admin or Privileged Authentication Administrator role within Microsoft Entra, as only individuals with these roles are authorized to configure the certificate authority (CA) in Microsoft Entra ID
* Configuring the TruU Cloud Trust PKI as specified in the TruU Cloud Trust Configuration Guide
* Setting up a certificate authority (CA) in Microsoft Entra ID (Azure AD) and activating certificate-based authentication (CBA)
* Ensuring the certificate authority (CA) has an Internet-facing URL with a publicly accessible Certificate Revocation List (CRL)
* Confirming that the domain controller can communicate with the CRL by configuring the necessary firewall ports. Alternative solutions are available if company policies restrict internet access for the domain controller
* Issuing and publishing a user certificate designed for client authentication to be used with Microsoft Entra ID (Azure AD)

## Configure TruU Cloud Trust and obtain certs and CRL information

Note: You will need to have the certificates and URLs prepared ahead of time in order to supply this information into the CA setup

1. In the TruU admin console navigate to the "Identity Servers" tab, then go to the "Key Store" page and search for C\_loud Trust entries for Root\_ and *client certificate authentication chain entries* and download the certificates

<img src="https://mintcdn.com/truu-2/ehCBQgFdl_pQd0MN/images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/a7b0483f-d321-42b9-bf95-da978cbeb3a8.png?fit=max&auto=format&n=ehCBQgFdl_pQd0MN&q=85&s=1a0718fcc2ac8cea481c4f043a07e425" alt="" width="1600" height="500" data-path="images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/a7b0483f-d321-42b9-bf95-da978cbeb3a8.png" />

2. Firstly, access the Cloud Trust entry to download the "client\_certificate\_auth\_chain.pem" file

<img src="https://mintcdn.com/truu-2/ehCBQgFdl_pQd0MN/images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/e27e4969-e6ea-464c-a873-396ab9c2cd64.png?fit=max&auto=format&n=ehCBQgFdl_pQd0MN&q=85&s=c3d259506b2ca9174f45eef33b90d0c9" alt="" width="542" height="389" data-path="images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/e27e4969-e6ea-464c-a873-396ab9c2cd64.png" />

3. Subsequently, click on the **Cloud Trust Root entry** and download the "cloud\_ca\_root.pem" file

<img src="https://mintcdn.com/truu-2/ehCBQgFdl_pQd0MN/images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/260a3439-2fa1-40c9-a3de-3eb6bbed6383.png?fit=max&auto=format&n=ehCBQgFdl_pQd0MN&q=85&s=d2d19293cefaa2ccdb7355c9bf8b3795" alt="" width="537" height="382" data-path="images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/260a3439-2fa1-40c9-a3de-3eb6bbed6383.png" />

4. Once these files are downloaded, they must be copied to the domain controller or to a system that is accessible by your Microsoft Entra portal

<img src="https://mintcdn.com/truu-2/ehCBQgFdl_pQd0MN/images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/3dd28792-92e0-4cb0-96c1-546807a52b58.png?fit=max&auto=format&n=ehCBQgFdl_pQd0MN&q=85&s=e841ef70aca52aa9801e6d6571ecc8d8" alt="" width="1600" height="375" data-path="images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/3dd28792-92e0-4cb0-96c1-546807a52b58.png" />

5. On your domain controller, you must add the Root certificate to the Trusted Root Certificate Authorities store. Additionally, the Issue Cloud Trust CA chain certificate should be added to the Intermediate Certificate Authorities store

Note: The issuing certificate is also placed into the NTAuthCertificates container. For detailed instructions, refer to the [TruU Cloud Trust Configuration Guide](https://docs.truu.ai/docs/configuring-cloud-trust-copy)

6. To proceed with the certification authorities configuration, sign into the Microsoft Entra portal as a Global Administrator. Navigate to Microsoft Entra ID, select **Security**, and then choose **Certificate Authorities** from the menu on the left-hand side

<img src="https://mintcdn.com/truu-2/ehCBQgFdl_pQd0MN/images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/7a6fbe78-68e8-4137-ac17-45ddf2f07584.png?fit=max&auto=format&n=ehCBQgFdl_pQd0MN&q=85&s=5d019e771ea514c1ec3b0e1dad598c7d" width="1220" height="282" data-path="images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/7a6fbe78-68e8-4137-ac17-45ddf2f07584.png" />

<img src="https://mintcdn.com/truu-2/ehCBQgFdl_pQd0MN/images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/611a42cb-037b-4133-bd95-6775d4bb094a.png?fit=max&auto=format&n=ehCBQgFdl_pQd0MN&q=85&s=02dfe46e2536a066f3e5394aca7cff08" width="1168" height="184" data-path="images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/611a42cb-037b-4133-bd95-6775d4bb094a.png" />

<img src="https://mintcdn.com/truu-2/ehCBQgFdl_pQd0MN/images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/1ce10f19-bf15-4bc1-96cc-319c64156cf5.png?fit=max&auto=format&n=ehCBQgFdl_pQd0MN&q=85&s=1b6b55baf6becd69e7ebfc575ac21da0" width="1600" height="234" data-path="images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/1ce10f19-bf15-4bc1-96cc-319c64156cf5.png" />

7. Next, locate your CRL URL by going to the TruU Admin portal, navigating to "Integrations", then "Adapters", and click on **TruU Cloud Trust**. Upon opening the form, scroll to the top to find your Root and Issuing CA CRL information

<img src="https://mintcdn.com/truu-2/jJ0QGEHfTe0CfrEY/images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/0e5faaa0-2f0a-4940-952d-42bfcb84f2c8.png?fit=max&auto=format&n=jJ0QGEHfTe0CfrEY&q=85&s=094e0b67178699e87980736d42f3ceb8" width="1600" height="678" data-path="images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/0e5faaa0-2f0a-4940-952d-42bfcb84f2c8.png" />

<img src="https://mintcdn.com/truu-2/ehCBQgFdl_pQd0MN/images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/34e4c561-d923-4617-9e6e-ed6c52bcf765.png?fit=max&auto=format&n=ehCBQgFdl_pQd0MN&q=85&s=1fd1b4fd4d728bbc3a3cabe78a60b798" width="659" height="395" data-path="images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/34e4c561-d923-4617-9e6e-ed6c52bcf765.png" />

8. For both the Root and the Issuing CA certificates, follow these sub-steps

a. Upload the .pem file you have downloaded

b. Indicate whether the CA is a root certificate by selecting **Yes**, and select **No** if it is not

c. Provide the http internet-facing URL for both the Issuing and Root CRLs. The CRLs contain all revoked certificates, which is necessary to ensure that authentication with revoked certificates will fail, thus maintaining control over certificate renewal

d. Optionally, set the *Delta CRL URL*, which is the http internet-facing URL for the CRL that includes all revoked certificates issued since the last base CRL was published

e. After clicking **Add**, remember to save the configuration. Repeat the process for the second .pem file

<img src="https://mintcdn.com/truu-2/ehCBQgFdl_pQd0MN/images/docs/b4d522e-image.png?fit=max&auto=format&n=ehCBQgFdl_pQd0MN&q=85&s=87940359ab1cd3430c5b941dbb4584f8" alt="" width="1190" height="456" data-path="images/docs/b4d522e-image.png" />

9. To ensure the domain controller can successfully reach the published Certificate Revocation List (CRL), there are two verification methods that can be employed: using a web browser or the command prompt

a. Firstly, from the domain controller, copy the *URL* for the *Issuing Certification Authority (CA) CRL* obtained earlier and paste it into any web browser. If the URL is accessible, a .crl file should automatically download to the downloads folder

<img src="https://mintcdn.com/truu-2/jJ0QGEHfTe0CfrEY/images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/04398c9c-772c-4293-8218-462af0b8f990.png?fit=max&auto=format&n=jJ0QGEHfTe0CfrEY&q=85&s=ff9710aab492db958bf6fc678e3f253f" alt="" width="816" height="199" data-path="images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/04398c9c-772c-4293-8218-462af0b8f990.png" />

b. Alternatively, an administrator can open a command prompt with elevated privileges and execute the following command, making sure to point it to the .pem file that was downloaded in the previous step:

`certutil -verify -urlfetch “path to truu chain cert”`

During the command's output, one should examine the Certificate Distribution Point (CDP) section. A status of "Verified" indicates proper communication with the CRL. Conversely, a "Failed" status suggests that there may be an issue, such as the need to consult with the firewall team to ensure that the domain controller's internet ports are open to reach the CRL

<img src="https://mintcdn.com/truu-2/ehCBQgFdl_pQd0MN/images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/b1bea5a0-32bc-4ef0-a167-ddac20b1ced7.png?fit=max&auto=format&n=ehCBQgFdl_pQd0MN&q=85&s=4b6ed6d33fadf267689daa36e48870cc" alt="" width="988" height="141" data-path="images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/b1bea5a0-32bc-4ef0-a167-ddac20b1ced7.png" />

NOTE: Moving on to the configuration of the authentication binding policy, this policy dictates the required strength of authentication, which can be set to either single-factor or multi-factor authentication. Administrators have the ability to modify the default settings and create custom policy rules by associating them with issuer Subject or policy Object Identifier (OID) fields in the certificate

## To enable certificate-based authentication and configure user bindings in the Entra portal, follow these steps:

1. Log into the Microsoft Entra portal with **Authentication Policy Administrator** credentials
2. Navigate to **Microsoft Entra ID** (formerly Azure Active Directory), and on the left-hand menu, select **Security**
3. Proceed to **Authentication methods** and then to **Policies**
4. Under **Manage**, find and click on **Authentication methods** and then **Certificate-based Authentication**

<img src="https://mintcdn.com/truu-2/ehCBQgFdl_pQd0MN/images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/c4447720-5ccd-4ca9-8296-9fc7d292adbd.png?fit=max&auto=format&n=ehCBQgFdl_pQd0MN&q=85&s=41e78c6dca310966bb25306293b82a9d" alt="" width="1600" height="741" data-path="images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/c4447720-5ccd-4ca9-8296-9fc7d292adbd.png" />

5. Use the **Configure** option to set up authentication binding and username binding
6. Note that the **protection level** attribute defaults to Single-factor authentication. To enhance security, select **Multi-factor authentication** to change the default setting to MFA

<img src="https://mintcdn.com/truu-2/ehCBQgFdl_pQd0MN/images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/c08aae7b-7ff4-4904-92c8-b84b71eafd9e.png?fit=max&auto=format&n=ehCBQgFdl_pQd0MN&q=85&s=bbc5ccd23bb5ddd717671149d747fc88" alt="" width="1600" height="606" data-path="images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/c08aae7b-7ff4-4904-92c8-b84b71eafd9e.png" />

7. We can enhance security by setting up custom authentication binding rules, which determine the protection level required for client certificates. These rules can be based on the certificate's issuer Subject or Policy OID fields. Essentially, authentication binding rules associate certificate attributes—either issuer or Policy OID—with a specified value, establishing a default protection level for that rule. It's possible to create multiple rules to meet various security requirements. To introduce custom rules, one should navigate to the "Add Rule" option

<img src="https://mintcdn.com/truu-2/jJ0QGEHfTe0CfrEY/images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/161d0475-5ba7-48fb-adc0-ea51a1135aa4.png?fit=max&auto=format&n=jJ0QGEHfTe0CfrEY&q=85&s=43516eb12b8d14851240892a6f007fb3" alt="" width="1600" height="273" data-path="images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/161d0475-5ba7-48fb-adc0-ea51a1135aa4.png" />

8. When creating a rule based on the certificate issuer, the following steps should be followed

a. Select **Certificate issuer**

b. Choose an identifier for the Certificate issuer from the dropdown menu

c. Set **Multi-factor authentication** as the protection level. To establish a rule using Policy OID, click Policy OID

e. Input the desired value for the *Policy OID*

f. Again, select **Multi-factor authentication** as the protection level

After setting up the rules, click **Ok** to save them

NOTE: Moving on to configuring the username binding policy, this is crucial for identifying the user within the tenant. By default, the system maps the Principal Name in the certificate to the onPremisesUserPrincipalName attribute in the user object. However, administrators have the flexibility to override this default setting by creating custom mappings

Currently, there are two certificate fields supported for this purpose: SAN (Subject Alternate Name) Principal Name and SAN RFC822Name. These can be mapped against two user object attributes: userPrincipalName and onPremisesUserPrincipalName. To configure the username binding policy, one would follow the specific steps provided for these mappings

It's important to note that if a username binding policy utilizes attributes synced from on-premises, like the onPremisesUserPrincipalName attribute of the user object, any administrator with access to the Entra ID Connect server could potentially alter the sync attribute mapping. Consequently, this could change the value of the synced attribute to fit their requirements. Therefore, caution is advised when implementing policies that rely on synced attributes

1. To set up username binding, one must choose from the available X.509 certificate fields and associate them with corresponding user attributes. The order in which username bindings are arranged is significant because it establishes the hierarchy of priority. The top binding in the list is given the highest precedence. If the authentication system locates the designated X.509 certificate field within the certificate and fails to match it with a user object, the authentication will not succeed. In this scenario, Microsoft Entra ID ceases further attempts with subsequent bindings. It is only when the specific X.509 certificate field is absent from the certificate that the system proceeds to the next priority level
2. Once the desired binding is configured, one must click **Save** to ensure the changes are captured

<img src="https://mintcdn.com/truu-2/ehCBQgFdl_pQd0MN/images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/3298e975-549a-4fdd-aa23-254c5e3c91ad.png?fit=max&auto=format&n=ehCBQgFdl_pQd0MN&q=85&s=ba1aaf889f544a66dc2777d07bfc7d30" alt="" width="1600" height="606" data-path="images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/3298e975-549a-4fdd-aa23-254c5e3c91ad.png" />

Note that Microsoft Entra ID supports a specific set of username bindings. They are as follows:

* Subject Alternative Name (SAN) Principal Name bound to userPrincipalName
* SAN Principal Name bound to onPremisesUserPrincipalName
* SAN RFC822Name bound to userPrincipalName
* SAN RFC822Name bound to onPremisesUserPrincipalName

## Enabling Certificate-Based Authentication (CBA) within the tenant,

1. Begin by logging into the Microsoft Entra portal as an Authentication Policy Administrator
2. Navigate to the "Security" section found in the menu on the left-hand side
3. Under the "Manage" category, locate and select **Authentication methods** followed by **Certificate-based Authentication**
4. To activate CBA, you will find an "Enable and Target" section, where you should select **Enable** to switch on CBA
5. CBA can be implemented for all users or a targeted subset of users
   1. To enable CBA for every user, click on **All Users**
   2. Alternatively, if you wish to activate CBA for specific users or groups, opt for **Select Users**

<img src="https://mintcdn.com/truu-2/qCK1oWL4jNpZKJ8A/images/docs/a620d87-image.png?fit=max&auto=format&n=qCK1oWL4jNpZKJ8A&q=85&s=4b37ad684f6d33a103c11b4d69baa002" alt="" width="990" height="440" data-path="images/docs/a620d87-image.png" />

Once certificate-based authentication is enabled on the tenant, all users within the tenant will be presented with the option to sign in using a certificate. However, it's important to note that only those users who have been specifically enabled for certificate-based authentication will successfully authenticate using an X.509 certificate.

Note: To test your configuration, it is essential to verify both your certificate and any custom authentication binding rules you may have set up

To begin testing your certificate, attempt to sign into the MyApps portal using the browser on your device. Follow these steps:

1. Enter your *User Principal Name (UPN)*
2. Click **Next**
3. Choose the **Sign in with a certificate** option

<img src="https://mintcdn.com/truu-2/jJ0QGEHfTe0CfrEY/images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/158e63e8-da28-4fd1-9f6a-b050d97091ca.png?fit=max&auto=format&n=jJ0QGEHfTe0CfrEY&q=85&s=3bd3318e375c188fc271ac4f25b91cb2" width="862" height="645" data-path="images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/158e63e8-da28-4fd1-9f6a-b050d97091ca.png" />

<img src="https://mintcdn.com/truu-2/YlfY4z_3_-uDkBaP/images/docs/694e02e-image.png?fit=max&auto=format&n=YlfY4z_3_-uDkBaP&q=85&s=554514880d6f8cee831ce53e187f7bec" width="454" height="388" data-path="images/docs/694e02e-image.png" />

4. Select **Use certificate or Smart card** option
   1. It is worth mentioning that users might encounter a certificate prompt during their first login attempt. This prompt can be managed through a registry key or a group policy which can suppress the certificate selection prompt if so desired

<img src="https://mintcdn.com/truu-2/ehCBQgFdl_pQd0MN/images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/8c6534b3-0345-40e4-9dde-62db2dd0ecbb.png?fit=max&auto=format&n=ehCBQgFdl_pQd0MN&q=85&s=1922f66835693c27b574765be3e7ca81" alt="" width="1160" height="1010" data-path="images/docs/a8cfe83b-31f5-4a65-a045-f9a5073b0415/de215812-07af-4a01-b59c-22d623946b03/4f4b8197-329e-47b1-8281-429baee6fa7c/images/8c6534b3-0345-40e4-9dde-62db2dd0ecbb.png" />

***

[Configure Entra ID for Microsoft CBA](https://docs.truu.ai/docs/copy-of-cba-with-entra-id-and-microsoft-ca)
