Tutorial Internet Access Tls Inspection
In brief
The tutorial now describes GSA Service TLS inspection and certificates signed by a GSA intermediary certificate. Setup uses **Microsoft-managed** certificate creation, while enterprise CA certificates remain an option.
What Entra admins need to know
Administrators following the tutorial should use the updated certificate workflow and ensure clients trust the GSA intermediary certificate.
This editorial summary was generated by AI from the documentation changes. Verify important details in the full Microsoft Learn article.
Documentation change
The comparison below shows only the changed extract. Use the full-page view for complete context.
Here's the flow of traffic:
- The client establishes TLS connection to security service edge (SSE).
SSEGSA establishes separate TLS connection to destination.SSEGSA decrypts, inspects, and reencrypts traffic.- The client sees a certificate signed by
your enterprise certificate authority (CA).the GSA intermediary certificate. - If allowed by policy,
SSEGSA forwards the traffic to the original destination server.
User → GSA Client → SSE ProxyGSA Service → Destination Server
│
[TLS Terminated]
[Content Inspected]
[Re-encrypted with Enterprise CA cert]encrypted]
[Forwarded to destination]
In this tutorial, you create and enable a TLS inspection policy. You keep the system-generated bypass rules at their default values. You then verify that TLS inspection is occurring as expected.
Sample walkthrough videos
The following video demonstrates how to configure TLS inspection.
The following video demonstrates more TLS inspection configuration.
The following video demonstrates how to verify TLS inspection.
Step 1: Create a TLS termination CA certificate
Creating a TLS termination CAOrganizations must generate an intermediary certificate involves generating a certificate signing request (CSR), signing it, and uploading the signed certificate. The TLS termination CA certificatewhich is used to issue short-lived leaf certificates for the websitewebsites being accessed.
Step 1.1: Generate Admins can choose between a CSR
Microsoft-managed certificate or they can generate their own certificate using an Enterprise certificate authority. For this tutorial, we will use the Microsoft-managed certificate.
To creategenerate and activate a CSR and upload the signed certificate for TLS termination:Microsoft-managed intermediary certificate:
Sign in to the Microsoft Entra admin center as a Global Secure Access Administrator.
Browse to Global Secure Access > Secure > TLS inspection policies.
Switch toSelect the TLS inspection settings tab.Select
+Create certificate, and then select Microsoft-managed.- Select Create.
- On the TLS inspection settings tab, select the actions menu (...) next to the managed certificate and select Enable.
- Confirm that the certificate status changes to Active.
- Select the actions menu (...) next to the managed certificate and select Download root certificate. This
step starts with generating a CSR. Inwill be used later in Step 5: Verify TLS inspection on theCreate certificatepane, fill in the following fields:Certificate name: The certificate name appears in the certificate hierarchy when you view it in a browser. It must be unique, contain no spaces, and be no more than 12 characters long. You can't reuse previous names.Common name: The common name, for example,Contoso TLS ICA, that identifies the intermediate certificate.Organization name: The organization name, for example,Contoso IT.
SelectCreate CSRclient.This step creates a.csrfile and saves it to your default download folder.
Step 1.2: Sign the CSR
Sign the CSR by using your self-signed certificate or private key infrastructure (PKI) service.
Option 1:Public documentation steps by using OpenSSLIf you're unfamiliar with how to use OpenSSL, reference the sample walkthrough videos if you get stuck.You can download OpenSSL for Windows from a non-Microsoft site. Verify the integrity of downloaded binaries before use.Option 2:Sample PowerShell script by using Active Directory Certificate Services
If you create your own certificate without using the provided samples, make sure that Server Auth is in Extended Key Usage and certificate authority (CA)=true, keyCertSign, cRLSign, and basicConstraints=critical,CA:TRUE are in Basic Extension. Save the signed certificate in .pem format.
Step 1.3: Upload the signed certificate for TLS termination
After you have your certificate and chain .pem files, upload the signed certificate for TLS termination.
Select+ Upload certificate.On theUpload certificateform, upload thesignedcertificate.pemandrootCAchain.pemfiles.SelectUpload signed certificate.
Next to the certificate, select the ellipsis (three dots) under theActionscolumn, and then selectEnable.
After you enable the certificate, the status changes fromEnrollingtoActive. This step might take a few minutes.
Step 2: Create a TLS inspection policy
In the Microsoft Entra admin center, browse to Secure > TLS inspection policies.
Select Create policy.
Enter a name and a description (optional), and then set
ActionDefault action to Inspect.Select Next.
By setting the default action toInspect, all traffic is TLS inspected unless it matches a bypass rule that you or the system generates. When you create a TLS inspection policy, the system automatically generates two rules. The first rule is a system rule that automatically bypasses destinations that Microsoft knows are incompatible with TLS inspection. The second rule is a recommended bypass list that bypasses TLS inspection for specific categories that users might consider sensitive or private. You can edit this rule later.You can view the system-generated rulesafteryou create the TLS inspection policy by selectingEditon the policy.
SelectNext.SelectSubmit.Browse toEntra ID>Conditional Access.SelectCreate new policy.Enter a name and assign a user or group.SelectTarget resources, and then selectAll internet resources with Global Secure Access.SelectSession>Use Global Secure Access security profileand choose the security profile that you created in step 3.SelectSelect.In theEnable policysection, ensure thatOnis selected.SelectCreate.
It might take up to an hour for the security profile to take effect after Conditional Access assigns it.
Step 5: Verify TLS inspection on the client
To verify that TLS inspection is occurring properly:
Make sure the user device has therootCAchain.pemfile installed in theTrusted Root Certification Authoritiesfolder.On Windows 11, openManage user certificates.SelectTrusted Root Certification Authorities, and then right-clickCertificates.SelectImport(it might be located underAll Tasks).Follow the import wizard to select and import therootCAchain.pemfile.
Open a browser on a client device and test various websites, such aswww.google.com. Inspect the certificate information and confirm the GSA certificate.
Select Next.
Select Submit.
Browse to Entra ID > Conditional Access.
Select Create new policy.
Enter a name for the policy.
Select Users or agents and select a user or group with your pilot users included.
Select Target resources, and then select All internet resources with Global Secure Access.
Select Session > Use Global Secure Access security profile and choose the security profile that you created in step 3.
Select Select.
In the Enable policy section, select On.
Select Create.
It can take up to an hour for the security profile to take effect after Conditional Access assigns it.
Step 5: Verify TLS inspection on the client
To verify that TLS inspection is occurring properly:
- Copy the root certificate downloaded from Step 1 onto your Windows 11 device.
- Install the root certificate in the Trusted Root Certification Authorities folder.
- On Windows 11, open Manage user certificates.
- Select Trusted Root Certification Authorities, and then right-click Certificates.
- Select Import (it might be located under All Tasks).
- Follow the import wizard to select and import the root certificate file.
- Open a browser on a client device and test various websites, such as
www.google.com. Inspect the certificate information and confirm the GSA certificate.
Select the lock icon next to the web URL.
:::image type="content" source="media/tutorial-internet-access-tls-inspection/tls-certificate-lock-icon.png" alt-text="Screenshot that shows the lock icon next to the URL." lightbox="media/tutorial-internet-access-tls-inspection/tls-certificate-lock-icon.png":::
Select Connection is secure.
Select the certificate icon.
:::image type="content" source="media/tutorial-internet-access-tls-inspection/tls-certificate-connection-secure.png" alt-text="Screenshot that shows Connection is secure and the certificate icon." lightbox="media/tutorial-internet-access-tls-inspection/tls-certificate-connection-secure.png":::
Verify that the common name says Microsoft Global Secure Access Intermediate.
:::image type="content" source="media/tutorial-internet-access-tls-inspection/tls-certificate-verification.png" alt-text="Screenshot that shows certificate verification." lightbox="media/tutorial-internet-access-tls-inspection/tls-certificate-verification.png":::
What you learned
In this exercise, you accomplished the following tasks:
- Created a certificate for TLS inspection: You generated a Microsoft-managed intermediary certificate in Global Secure Access. You established the trust chain that you need for TLS inspection.
- Understood bypass rules: You learned that some destinations are incompatible with TLS inspection, such as certificate pinning or mutual TLS, or are privacy sensitive, such as banking or healthcare. GSA automatically creates rules that bypass these destinations by default.
- Created a security profile with Conditional Access: You learned that you can use a security profile via Conditional Access to target specific users to allow for phased rollouts. This is different than the baseline profile which applies to everyone even without specific user/group assignment.
- Established trust of the root certificate: You learned that for clients to trust the re-encrypted traffic, they need the root certificate in their trusted store.
Security considerations
- When generating a self-managed root certificate, protect your root CA private key because attackers could forge certificates if it's compromised.
- Consider using a dedicated CA for TLS inspection, not your production PKI (common industry guidance).
- Audit bypass rules regularly to ensure that sensitive sites remain protected.
@@ -42,17 +42,17 @@ With TLS inspection enabled, security tools can see the: Here's the flow of traffic: 1. The client establishes TLS connection to security service edge (SSE).-1. SSE establishes separate TLS connection to destination.-1. SSE decrypts, inspects, and reencrypts traffic.-1. The client sees a certificate signed by your enterprise certificate authority (CA).-1. If allowed by policy, SSE forwards the traffic to the original destination server.+1. GSA establishes separate TLS connection to destination.+1. GSA decrypts, inspects, and reencrypts traffic.+1. The client sees a certificate signed by the GSA intermediary certificate.+1. If allowed by policy, GSA forwards the traffic to the original destination server. ```Example:- User → GSA Client → SSE Proxy → Destination Server+ User → GSA Client → GSA Service → Destination Server │ [TLS Terminated] [Content Inspected]- [Re-encrypted with Enterprise CA cert]+ [Re-encrypted] [Forwarded to destination] ``` @@ -60,72 +60,20 @@ Here's the flow of traffic: In this tutorial, you create and enable a TLS inspection policy. You keep the system-generated bypass rules at their default values. You then verify that TLS inspection is occurring as expected. -## Sample walkthrough videos--The following video demonstrates how to configure TLS inspection.--> [!VIDEO https://www.youtube.com/embed/sn9sF1FRPzI]--The following video demonstrates more TLS inspection configuration.--> [!VIDEO https://www.youtube.com/embed/0XDsnn94Y1I]--The following video demonstrates how to verify TLS inspection.--> [!VIDEO https://www.youtube.com/embed/KDFLLct7xfo]- ### Step 1: Create a TLS termination CA certificate -Creating a TLS termination CA certificate involves generating a certificate signing request (CSR), signing it, and uploading the signed certificate. The TLS termination CA certificate is used to issue short-lived leaf certificates for the website being accessed.--#### Step 1.1: Generate a CSR+Organizations must generate an intermediary certificate which is used to issue short-lived leaf certificates for websites being accessed. Admins can choose between a Microsoft-managed certificate or they can generate their own certificate using an Enterprise certificate authority. For this tutorial, we will use the Microsoft-managed certificate. -To create a CSR and upload the signed certificate for TLS termination:+To generate and activate a Microsoft-managed intermediary certificate: 1. Sign in to the Microsoft Entra admin center as a Global Secure Access Administrator. 1. Browse to **Global Secure Access** > **Secure** > **TLS inspection policies**.-1. Switch to the **TLS inspection settings** tab.-1. Select **+ Create certificate**. This step starts with generating a CSR.-1. In the **Create certificate** pane, fill in the following fields:-- - **Certificate name**: The certificate name appears in the certificate hierarchy when you view it in a browser. It must be unique, contain no spaces, and be no more than 12 characters long. You can't reuse previous names.- - **Common name**: The common name, for example, `Contoso TLS ICA`, that identifies the intermediate certificate.- - **Organization name**: The organization name, for example, `Contoso IT`.-1. Select **Create CSR**. This step creates a `.csr` file and saves it to your default download folder.-- --#### Step 1.2: Sign the CSR--Sign the CSR by using your self-signed certificate or private key infrastructure (PKI) service.--- **Option 1:** [Public documentation steps by using OpenSSL](how-to-transport-layer-security-settings.md#test-with-a-self-signed-root-certificate-authority-using-openssl)-- If you're unfamiliar with how to use OpenSSL, reference the sample walkthrough videos if you get stuck.-- You can download [OpenSSL for Windows](https://slproweb.com/products/Win32OpenSSL.html) from a non-Microsoft site. Verify the integrity of downloaded binaries before use.--- **Option 2:** [Sample PowerShell script by using Active Directory Certificate Services](scripts/powershell-active-directory-certificate-service.md)--If you create your own certificate without using the provided samples, make sure that **Server Auth** is in Extended Key Usage and `certificate authority (CA)=true`, `keyCertSign`, `cRLSign`, and `basicConstraints=critical,CA:TRUE` are in Basic Extension. Save the signed certificate in `.pem` format.--#### Step 1.3: Upload the signed certificate for TLS termination--After you have your certificate and chain `.pem` files, upload the signed certificate for TLS termination.--1. Select **+ Upload certificate**.-1. On the **Upload certificate** form, upload the `signedcertificate.pem` and `rootCAchain.pem` files.-1. Select **Upload signed certificate**.-- --1. Next to the certificate, select the ellipsis (three dots) under the **Actions** column, and then select **Enable**.-- --1. After you enable the certificate, the status changes from **Enrolling** to **Active**. This step might take a few minutes.-- +1. Select the **TLS inspection settings** tab.+1. Select **Create certificate**, and then select **Microsoft-managed**.+1. Select **Create**.+1. On the **TLS inspection settings** tab, select the actions menu (...) next to the managed certificate and select **Enable**.+1. Confirm that the certificate status changes to Active.+1. Select the actions menu (...) next to the managed certificate and select **Download root certificate**. This will be used later in **Step 5: Verify TLS inspection on the client**. ### Step 2: Create a TLS inspection policy @@ -133,14 +81,16 @@ To create a TLS inspection policy: 1. In the Microsoft Entra admin center, browse to **Secure** > **TLS inspection policies**. 1. Select **Create policy**.-1. Enter a name and a description (optional), and then set **Action** to **Inspect**.+1. Enter a name and a description (optional), and then set **Default action** to **Inspect**. 1. Select **Next**. - By setting the default action to **Inspect**, all traffic is TLS inspected unless it matches a bypass rule that you or the system generates. When you create a TLS inspection policy, the system automatically generates two rules. The first rule is a system rule that automatically bypasses destinations that Microsoft knows are incompatible with TLS inspection. The second rule is a recommended bypass list that bypasses TLS inspection for specific categories that users might consider sensitive or private. You can edit this rule later.- - You can view the system-generated rules *after* you create the TLS inspection policy by selecting **Edit** on the policy.- - + > [!NOTE]+ > By setting the default action to **Inspect**, all traffic is TLS inspected unless it matches a bypass rule that you or the system generates. When you create a TLS inspection policy, the system automatically generates two rules. The first rule is a system rule that automatically bypasses destinations that Microsoft knows are incompatible with TLS inspection. The second rule is a recommended bypass list that bypasses TLS inspection for specific categories that users might consider sensitive or private. You can edit this rule later.+ >+ > :::image type="content" source="media/tutorial-internet-access-tls-inspection/tls-inspection-policy-rules.png" alt-text="Screenshot that shows the TLS inspection policy rules." lightbox="media/tutorial-internet-access-tls-inspection/tls-inspection-policy-rules.png":::++ > [!NOTE]+ > You can view the system-generated rules *after* you create the TLS inspection policy by selecting **Edit** on the policy and viewing the **Rules**. 1. Select **Next**. 1. Select **Submit**.@@ -159,24 +109,26 @@ To create a TLS inspection policy: 1. Browse to **Entra ID** > **Conditional Access**. 1. Select **Create new policy**.-1. Enter a name and assign a user or group.+1. Enter a name for the policy.+1. Select **Users or agents** and select a user or group with your pilot users included. 1. Select **Target resources**, and then select **All internet resources with Global Secure Access**. 1. Select **Session** > **Use Global Secure Access security profile** and choose the security profile that you created in step 3. 1. Select **Select**.-1. In the **Enable policy** section, ensure that **On** is selected.+1. In the **Enable policy** section, select **On**. 1. Select **Create**. -It might take up to an hour for the security profile to take effect after Conditional Access assigns it.+It can take up to an hour for the security profile to take effect after Conditional Access assigns it. ### Step 5: Verify TLS inspection on the client To verify that TLS inspection is occurring properly: -1. Make sure the user device has the `rootCAchain.pem` file installed in the **Trusted Root Certification Authorities** folder.- - On Windows 11, open **Manage user certificates**.- - Select **Trusted Root Certification Authorities**, and then right-click **Certificates**.- - Select **Import** (it might be located under **All Tasks**).- - Follow the import wizard to select and import the `rootCAchain.pem` file.+1. Copy the root certificate downloaded from Step 1 onto your Windows 11 device.+1. Install the root certificate in the **Trusted Root Certification Authorities** folder.+ - On Windows 11, open **Manage user certificates**.+ - Select **Trusted Root Certification Authorities**, and then right-click **Certificates**.+ - Select **Import** (it might be located under **All Tasks**).+ - Follow the import wizard to select and import the root certificate file. 1. Open a browser on a client device and test various websites, such as `www.google.com`. Inspect the certificate information and confirm the GSA certificate. > [!NOTE]@@ -186,50 +138,29 @@ To check the certificate on the Microsoft Edge browser: 1. Select the lock icon next to the web URL. - + :::image type="content" source="media/tutorial-internet-access-tls-inspection/tls-certificate-lock-icon.png" alt-text="Screenshot that shows the lock icon next to the URL." lightbox="media/tutorial-internet-access-tls-inspection/tls-certificate-lock-icon.png"::: 1. Select **Connection is secure**. 1. Select the certificate icon. - + :::image type="content" source="media/tutorial-internet-access-tls-inspection/tls-certificate-connection-secure.png" alt-text="Screenshot that shows Connection is secure and the certificate icon." lightbox="media/tutorial-internet-access-tls-inspection/tls-certificate-connection-secure.png"::: 1. Verify that the common name says **Microsoft Global Secure Access Intermediate**. - + :::image type="content" source="media/tutorial-internet-access-tls-inspection/tls-certificate-verification.png" alt-text="Screenshot that shows certificate verification." lightbox="media/tutorial-internet-access-tls-inspection/tls-certificate-verification.png"::: ## What you learned In this exercise, you accomplished the following tasks: -- **Created a certificate hierarchy:** You generated a CSR, signed it with a root CA, and uploaded both certificates to GSA. You established the trust chain that you need for TLS inspection.-- **Understood bypass rules:** You learned that some destinations are incompatible with TLS inspection, such as certificate pinning or mutual TLS, or are privacy sensitive, such as banking or healthcare. The system automatically bypasses some destinations by default.-- **Created a security profile with Conditional Access:** You learned that unlike the baseline profile (which applies to everyone), this security profile uses Conditional Access to target specific users to allow for phased rollouts.-- **Distributed the root CA certificate:** You learned that for clients to trust the re-encrypted traffic, they need the root CA certificate in their trusted store.--### Deep dive: The certificate chain--```Example:- ┌─────────────────────────────┐- │ Your root CA │ ← Deployed to client trusted store- │ (rootCAchain.pem) │- └─────────────┬───────────────┘- │- ▼ Signs- ┌─────────────────────────────┐- │ GSA intermediate CA │ ← Uploaded to GSA (signed certificate)- │ (signedcertificate.pem) │- └─────────────┬───────────────┘- │- ▼ Signs (dynamically)- ┌─────────────────────────────┐- │ Leaf certificates │ ← Generated on-the-fly for each site- │ (www.google.com, etc.) │- └─────────────────────────────┘- ```+- **Created a certificate for TLS inspection:** You generated a Microsoft-managed intermediary certificate in Global Secure Access. You established the trust chain that you need for TLS inspection.+- **Understood bypass rules:** You learned that some destinations are incompatible with TLS inspection, such as certificate pinning or mutual TLS, or are privacy sensitive, such as banking or healthcare. GSA automatically creates rules that bypass these destinations by default.+- **Created a security profile with Conditional Access:** You learned that you can use a security profile via Conditional Access to target specific users to allow for phased rollouts. This is different than the baseline profile which applies to everyone even without specific user/group assignment.+- **Established trust of the root certificate:** You learned that for clients to trust the re-encrypted traffic, they need the root certificate in their trusted store. ### Security considerations -- Protect your root CA private key because attackers could forge certificates if it's compromised.+- When generating a self-managed root certificate, protect your root CA private key because attackers could forge certificates if it's compromised. - Consider using a dedicated CA for TLS inspection, not your production PKI (common industry guidance). - Audit bypass rules regularly to ensure that sensitive sites remain protected. 