How-To: Set Up TLS Inspection in Microsoft Global Secure Access with EZCA
Overview - How TLS Inspection Works in Microsoft Entra Internet Access
Microsoft Entra Internet Access, part of Microsoft’s Global Secure Access (GSA) Security Service Edge, can decrypt your users’ HTTPS traffic, apply web filtering and threat protection, and re-encrypt it before it reaches the device. To do this without certificate warnings, Global Secure Access generates a certificate for every website on the fly and signs it with a TLS inspection intermediate CA certificate. Your devices must trust the Root CA above that intermediate.
Microsoft recommends signing that intermediate CA with your organization’s own PKI for production use. This guide shows you how to sign the Global Secure Access Certificate Signing Request (CSR) with your EZCA Root CA, turn on TLS inspection, and push your Root CA to Windows devices with Microsoft Intune.
Why Use EZCA for Global Secure Access TLS Inspection?
- The private key never leaves Microsoft. Global Secure Access generates the key pair and only gives you the CSR. EZCA signs it and returns the certificate.
- Your devices may already trust it. If you already push your EZCA Root CA to your devices for Wi-Fi, VPN, or SCEP certificates, inspected traffic is trusted without any extra configuration.
- No new CA to pay for. You sign the CSR with your existing EZCA Root CA, so you don’t need to create (or pay for) a new CA in EZCA.
- Full visibility. The TLS inspection CA certificate shows up in EZCA next to the rest of your PKI, so you can track when it expires.
Prerequisites for Setting Up TLS Inspection in Global Secure Access
- You have created a Root CA in EZCA, and you are a PKI Administrator of that CA.
- Your tenant has a Microsoft Entra Internet Access license (included in Microsoft Entra Suite, or as a trial), and you have activated Global Secure Access in the Microsoft Entra admin center.
- You have the Global Secure Access Administrator role in Microsoft Entra ID, and the Intune Administrator role (or a custom role that can create device configuration profiles) in Microsoft Intune.
- Your Windows devices are Microsoft Entra joined or hybrid joined, have the Global Secure Access client installed, and the Internet access traffic forwarding profile is enabled.
Step-by-Step Guide - How to Set Up TLS Inspection in Global Secure Access with EZCA
Step 1: How to Create a TLS Inspection CSR in Global Secure Access
The first step is to have Global Secure Access generate the key pair for its TLS inspection intermediate CA and give you a CSR to sign.
-
Sign in to the Microsoft Entra admin center and navigate to Global Secure Access > Secure > TLS inspection policies.
-
Select the TLS inspection settings tab, then click Create certificate.
-
Select Self-managed. This option lets you sign the CSR with your own CA instead of using a Microsoft-managed certificate.
-
Fill in the Create certificate form:
- Certificate name: A short name for the certificate in Global Secure Access (for example,
EZCATLSICA). It must be unique, have no spaces, and be 12 characters or fewer. You can’t reuse a name, even after you delete the certificate. - Common name: The subject name of the intermediate CA (for example,
Ultimate Guides TLS Inspection CA). This is the name your users see as the issuer of inspected websites, so make it recognizable. - Organization name: Your organization’s name (for example,
Ultimate Guides).
- Certificate name: A short name for the certificate in Global Secure Access (for example,
-
Click Create CSR. Global Secure Access saves a
.csrfile to your browser’s download folder.
The CSR Global Secure Access generates contains a 4096-bit RSA key and requests the extensions a TLS inspection CA needs: Key Usage of Certificate Sign and CRL Sign, Extended Key Usage of Server Authentication, and Basic Constraints of CA:TRUE. EZCA includes the requested key usages in the certificate it issues, so you don’t need to configure anything extra.
Step 2: How to Sign the TLS Inspection CSR with Your EZCA Root CA
Now that you have the CSR, sign it with your EZCA Root CA. This creates the intermediate CA certificate without creating a new CA in EZCA.
-
Go to your EZCA portal and navigate to Certificate Authorities.
-
Click View Requirements on your Root CA (in this example, Ultimate Guides Root CA).
-
Click Request External CA Certificate.
-
Fill in the Create New External CA form:
- CA Friendly Name: The name this CA certificate will have in EZCA (for example,
Ultimate Guides TLS Inspection CA). We recommend matching the common name you entered in Global Secure Access. - Validity Period: How long the TLS inspection CA certificate is valid. We recommend 12 to 24 months. A shorter lifetime limits the impact if the certificate is ever misused, but you will need to repeat this guide before it expires, or TLS inspection stops working.
- Import CSR: Click Upload CSR and select the
.csrfile you downloaded from Global Secure Access (or paste its contents in Enter CSR Body).
- CA Friendly Name: The name this CA certificate will have in EZCA (for example,
-
Click Create CA.
-
Click Download Certificate to download the signed TLS inspection CA certificate.
-
Rename the downloaded file from
.certo.pem(for example,certificate.pem). The file is already PEM encoded, and Global Secure Access expects a.pemfile.
Global Secure Access also needs the certificate of the Root CA that signed it (the chain). Follow these steps to download your Root CA certificate:
-
In your EZCA portal, go back to Certificate Authorities and click View Details on your Root CA.
-
Under CA Locations, click Download Certificate.
-
Make a copy of the downloaded Root CA certificate and rename it to
chain.pem. Keep the original.cerfile, because you will push it to your devices with Intune in Step 6.
Step 3: How to Upload the Signed Certificate to Global Secure Access
-
Back in the Microsoft Entra admin center, go to Global Secure Access > Secure > TLS inspection policies > TLS inspection settings. Your certificate shows a status of CSR generated.
-
Click Upload certificate under the status.
-
Next to Upload certificate (.pem), click Browse and select the signed certificate from EZCA (
certificate.pem). -
Next to Upload chain (.pem), click Browse and select your Root CA certificate (
chain.pem). -
Click Upload signed certificate.
-
The certificate is uploaded with a status of Disabled. Click the … under Actions, then click Enable.
-
The status changes to Enrolling, and after a few minutes to Enabled. Click Refresh to check the status.
Global Secure Access allows one enabled TLS inspection certificate at a time. The Root CA expiration column shows when the EZCA-signed certificate expires. Set a reminder to repeat Steps 1 to 3 with a new certificate name before that date, or TLS inspection stops working.
Step 4: How to Create a TLS Inspection Policy in Global Secure Access
A TLS inspection policy tells Global Secure Access which traffic to decrypt. We recommend inspecting by default and bypassing categories that contain sensitive personal data, such as banking and health websites.
-
Select the TLS inspection policies tab and click Create policy.
-
On the Basics page, fill in the form:
- Name: A name for the policy (for example,
Inspect Internet Traffic). - Description: (optional) A description of the policy.
- Default action: Leave this as Inspect so traffic that doesn’t match a rule is inspected.
- Name: A name for the policy (for example,
-
Click Next.
-
On the Rules page, click Add rule.
-
Fill in the rule form:
- Name: A name for the rule (for example,
Bypass-Sensitive-Categories). - Priority: A number that sets the order rules are evaluated in, lowest first (for example,
100). - Description: (optional) A description of the rule.
- Status: Enabled.
- Action: Bypass.
- Name: A name for the rule (for example,
-
Next to Web category, click Select destination, search for and select Finance and Health And Medicine, then click Apply.
-
Click Save to add the rule.
-
Click Next.
-
Review the policy and click Submit.
Global Secure Access also adds a system rule to every policy, which bypasses destinations that don’t work with TLS inspection (such as apps that use certificate pinning), and a recommended bypass rule for sensitive categories. You can see all of the rules by editing the policy.
Step 5: How to Link the TLS Inspection Policy to a Security Profile
A TLS inspection policy does nothing until you link it to a security profile. The Baseline profile applies to all internet traffic in your tenant and doesn’t need a Conditional Access policy.
Linking the policy to the Baseline profile turns on TLS inspection for every user with the Global Secure Access client. To pilot TLS inspection with a small group first, create a custom security profile, link the TLS inspection policy to it, and assign it to a test group with a Conditional Access policy. Let your users know before you turn on TLS inspection.
-
Navigate to Global Secure Access > Secure > Security profiles and select the Baseline profile tab.
-
Click Edit profile.
-
Select Link policies, click Link a policy, then click Existing TLS inspection policies.
-
Select your TLS inspection policy under Policy name, leave State as Enabled, and click Add.
-
Your TLS inspection policy now shows in the Baseline profile’s linked policies.
Security profile changes can take up to an hour to reach your devices.
Step 6: How to Deploy Your EZCA Root CA to Windows Devices with Intune
Your devices must trust your EZCA Root CA, or every inspected website shows a certificate error. Follow these steps to push the Root CA certificate to your Windows devices with a Microsoft Intune trusted certificate profile.
Already pushing your EZCA Root CA with Intune? If you already deploy this Root CA to your Windows devices (for example, for SCEP or Wi-Fi certificates), you can skip this step.
-
Sign in to the Microsoft Intune admin center and navigate to Devices > Configuration.
-
Click Create, then click New Policy.
-
Select the following options and click Create:
- Platform: Windows 10 and later
- Profile type: Templates
- Template name: Trusted certificate
-
On the Basics page, enter a Name (for example,
Windows - Ultimate Guides Root CA (TLS Inspection)) and an optional Description, then click Next.
-
On the Configuration settings page, configure the following options and click Next:
- Certificate file: Select the Root CA certificate you downloaded from EZCA in Step 2.
- Destination store: Computer certificate store - Root.
-
On the Assignments page, add the groups of devices that use Global Secure Access (in this example, Add all devices), then click Next.
-
On the Applicability Rules page, add any rules you need, then click Next.
-
On the Review + create page, review your settings and click Create.
Using macOS devices too? Follow the same steps with macOS as the platform. For devices that aren’t managed by Intune, see how to trust a Root CA in Windows and macOS.
How to Test TLS Inspection in Global Secure Access
Once the security profile and the Intune profile reach a device, follow these steps on a Windows device that has the Global Secure Access client installed:
- Make sure the Global Secure Access client shows as connected and that the device received the trusted certificate profile.
- Open a browser and go to a website that isn’t a Microsoft service and isn’t in a bypassed category (for example,
https://www.wikipedia.org). Microsoft 365 traffic uses a different traffic forwarding profile and isn’t inspected by this policy. - Click the padlock icon in the address bar and open the certificate details.
- Check the certificate path. It should chain up to your EZCA Root CA (in this example, Ultimate Guides Root CA) instead of the website’s public CA.
Global Secure Access doesn’t inspect QUIC (HTTP/3) traffic. If a browser connects over QUIC, the traffic isn’t inspected. Microsoft’s TLS inspection tutorial shows how to block QUIC on test devices. Also check that the security profile change has had up to an hour to take effect.
Frequently Asked Questions (FAQ) About Global Secure Access TLS Inspection
Do I Need a New CA in EZCA for Global Secure Access?
No. You sign the Global Secure Access CSR with your existing EZCA Root CA. This creates a new intermediate CA certificate, not a new CA, so there is no extra EZCA cost.
What Happens When the TLS Inspection Certificate Expires?
TLS inspection stops working when the EZCA-signed certificate expires. Before it expires, repeat Steps 1 to 3 with a new certificate name (Global Secure Access doesn’t let you reuse names), enable the new certificate, then delete the old one. Because the new certificate chains to the same EZCA Root CA, your devices don’t need any changes.
Can I Use the Same EZCA Root CA for Azure Firewall TLS Inspection?
Yes. You can sign the TLS inspection CSRs for both Global Secure Access and Azure Firewall with the same Root CA. Follow our guide to set up TLS inspection in Azure Firewall.
Next Steps - How to Manage Your TLS Inspection Certificates
Now that TLS inspection is running, you can use the URL filtering and threat protection features in Microsoft Entra Internet Access on encrypted traffic. You can see your TLS inspection CA certificate next to the rest of your PKI in EZCA, and learn how to manage your certificates.
🚀 Manage Your Certificates in EZCAEnjoying EZCA? Leave Us a Review!
We hope you’re enjoying using EZCA to secure your Global Secure Access TLS inspection! If you have a moment, we would greatly appreciate it if you could leave us a review on G2. Your feedback helps other IT professionals discover EZCA and helps us continue to improve our service. Thank you for your support!