How-To: Set Up TLS Inspection in Microsoft Global Secure Access with EZCA

Learn how to set up TLS inspection in Microsoft Entra Internet Access (Global Secure Access) with an EZCA-signed intermediate CA and push the Root CA to devices with Intune.

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

  1. You have created a Root CA in EZCA, and you are a PKI Administrator of that CA.
  2. 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.
  3. 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.
  4. 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.

  1. Sign in to the Microsoft Entra admin center and navigate to Global Secure Access > Secure > TLS inspection policies.

  2. Select the TLS inspection settings tab, then click Create certificate.

    Microsoft Entra Global Secure Access TLS inspection policies page with TLS inspection settings tab and Create certificate button highlighted
  3. Select Self-managed. This option lets you sign the CSR with your own CA instead of using a Microsoft-managed certificate.

    Microsoft Entra Global Secure Access Create certificate menu with Self-managed option highlighted
  4. 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).
  5. Click Create CSR. Global Secure Access saves a .csr file to your browser’s download folder.

    Microsoft Entra Global Secure Access Create certificate form filled in with certificate name, common name, and organization name with Create CSR button highlighted

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.

  1. Go to your EZCA portal and navigate to Certificate Authorities.

  2. Click View Requirements on your Root CA (in this example, Ultimate Guides Root CA).

    EZCA Cloud PKI My CAs list with View Requirements button highlighted for Ultimate Guides Root CA
  3. Click Request External CA Certificate.

    EZCA Cloud PKI Root CA Issuance Policy page with Request External CA Certificate button highlighted
  4. 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 .csr file you downloaded from Global Secure Access (or paste its contents in Enter CSR Body).
  5. Click Create CA.

    EZCA Cloud PKI Create New External CA form with CA Friendly Name, 24 Months validity period, and Global Secure Access CSR filled in with Create CA button highlighted
  6. Click Download Certificate to download the signed TLS inspection CA certificate.

    EZCA Cloud PKI Certificate Created Successfully page for Ultimate Guides TLS Inspection CA with Download Certificate button highlighted
  7. Rename the downloaded file from .cer to .pem (for example, certificate.pem). The file is already PEM encoded, and Global Secure Access expects a .pem file.

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:

  1. In your EZCA portal, go back to Certificate Authorities and click View Details on your Root CA.

  2. Under CA Locations, click Download Certificate.

    EZCA Cloud PKI Root CA details CA Locations section with Download Certificate button highlighted
  3. Make a copy of the downloaded Root CA certificate and rename it to chain.pem. Keep the original .cer file, 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

  1. 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.

  2. Click Upload certificate under the status.

  3. Next to Upload certificate (.pem), click Browse and select the signed certificate from EZCA (certificate.pem).

  4. Next to Upload chain (.pem), click Browse and select your Root CA certificate (chain.pem).

  5. Click Upload signed certificate.

    Microsoft Entra Global Secure Access Upload certificate pane with certificate.pem and chain.pem selected and Upload signed certificate button highlighted
  6. The certificate is uploaded with a status of Disabled. Click the … under Actions, then click Enable.

    Microsoft Entra Global Secure Access TLS inspection settings Actions menu with Enable option highlighted
  7. The status changes to Enrolling, and after a few minutes to Enabled. Click Refresh to check the status.

    Microsoft Entra Global Secure Access TLS inspection settings showing the EZCA-signed certificate with Enabled status highlighted

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.

  1. Select the TLS inspection policies tab and click Create policy.

    Microsoft Entra Global Secure Access TLS inspection policies tab with Create policy button highlighted
  2. 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.
  3. Click Next.

    Microsoft Entra Global Secure Access Create TLS inspection policy Basics page with name, description, and Inspect default action filled in and Next button highlighted
  4. On the Rules page, click Add rule.

    Microsoft Entra Global Secure Access Create TLS inspection policy Rules page with Add rule button highlighted
  5. 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.
  6. Next to Web category, click Select destination, search for and select Finance and Health And Medicine, then click Apply.

    Microsoft Entra Global Secure Access Add destination pane with Finance and Health And Medicine selected and Apply button highlighted
  7. Click Save to add the rule.

    Microsoft Entra Global Secure Access TLS inspection rule form with Bypass action and Finance and Health And Medicine web categories with Save button highlighted
  8. Click Next.

    Microsoft Entra Global Secure Access Create TLS inspection policy Rules page showing the Bypass-Sensitive-Categories rule with Next button highlighted
  9. Review the policy and click Submit.

    Microsoft Entra Global Secure Access Create TLS inspection policy Review page with Submit button highlighted

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.

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.

  1. Navigate to Global Secure Access > Secure > Security profiles and select the Baseline profile tab.

    Microsoft Entra Global Secure Access Security profiles page with Baseline profile tab highlighted
  2. Click Edit profile.

    Microsoft Entra Global Secure Access Baseline profile tab with Edit profile button highlighted
  3. Select Link policies, click Link a policy, then click Existing TLS inspection policies.

    Microsoft Entra Global Secure Access Edit Baseline profile Link a policy menu with Existing TLS inspection policies highlighted
  4. Select your TLS inspection policy under Policy name, leave State as Enabled, and click Add.

    Microsoft Entra Global Secure Access Link a TLS inspection policies pane with Inspect Internet Traffic policy selected and Add button highlighted
  5. Your TLS inspection policy now shows in the Baseline profile’s linked policies.

    Microsoft Entra Global Secure Access Edit Baseline profile Link policies page with Inspect Internet Traffic TLS inspection policy highlighted

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.

  1. Sign in to the Microsoft Intune admin center and navigate to Devices > Configuration.

  2. Click Create, then click New Policy.

    Microsoft Intune admin center Devices Configuration page with Create menu open and New Policy highlighted
  3. Select the following options and click Create:

    • Platform: Windows 10 and later
    • Profile type: Templates
    • Template name: Trusted certificate
    Microsoft Intune Create a profile pane with Windows 10 and later platform and Trusted certificate template highlighted with Create button highlighted
  4. On the Basics page, enter a Name (for example, Windows - Ultimate Guides Root CA (TLS Inspection)) and an optional Description, then click Next.

    Microsoft Intune Trusted certificate profile Basics page with name and description filled in and Next button highlighted
  5. 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.
    Microsoft Intune Trusted certificate profile Configuration settings with EZCA Root CA certificate file and Computer certificate store - Root highlighted
  6. On the Assignments page, add the groups of devices that use Global Secure Access (in this example, Add all devices), then click Next.

    Microsoft Intune Trusted certificate profile Assignments page with All devices included group highlighted
  7. On the Applicability Rules page, add any rules you need, then click Next.

  8. On the Review + create page, review your settings and click Create.

    Microsoft Intune Trusted certificate profile Review + create page with Create button highlighted

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:

  1. Make sure the Global Secure Access client shows as connected and that the device received the trusted certificate profile.
  2. 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.
  3. Click the padlock icon in the address bar and open the certificate details.
  4. 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.

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 EZCA

Enjoying 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!