
Recently, I wrote about Microsoft Always On VPN and Entra Conditional Access and how conditional access improves your organization’s security posture by making policy-based access decisions based on various signals such as user identity, location, device compliance, platform, sign-in risk, and more. In this post, I’ll provide step-by-step instructions for integrating Entra Conditional Access with existing Always On VPN deployments.
Requirements
To use Microsoft Entra Conditional Access with Always On VPN you must have Entra ID P1 at a minimum. To use advanced features such as risk-based policy assessment, you must have Entra ID P2. In addition, all endpoints must be under Intune management; either native Entra ID joined, or hybrid Entra ID joined.
Enable VPN Support
To begin, open the Microsoft Entra admin center (https://entra.microsoft.com/), navigate to Identity > Protection > Conditional Access, and perform the following steps.
- Click VPN Connectivity.
- Click New certificate.
- From the Select duration drop-down list, choose an appropriate certificate validity period.
- Click Create.

Once complete, click Download certificate and copy the certificate file to a domain-joined system on-premises.
Publish Certificate
Next, administrators must publish the Entra VPN root certificate in Active Directory to support domain authentication. Open an elevated PowerShell or command window and run the following commands.
certutil.exe -dspublish -f <path to certificate file> RootCA
certutil.exe -dspublish -f <path to certificate file> NtAuthCA
Note: You must be a domain administrator to perform this task.
Conditional Access Policy
Navigate to Identity > Protection > Conditional Access and click Policies, then perform the following steps to create a conditional access policy for VPN access.
- Click New Policy.
- Enter a descriptive name for the new policy.
- Click the link in the Target resources section.
- From the Select what this policy applies to drop-down list, select Resources (formerly cloud apps).
- In the Include section, choose Select resources.
- Click the link in the Select section.
- Enter VPN in the search field.
- Check the box next to VPN Server.
- Click Select.
- Click the link in the Grant section.
- Select Grant access.
- Check the box next to Require device to be marked as compliant.
- Click Select.
- On the Enable policy slider, select On.
- Click Create.
NPS
Changes to Network Policy Server (NPS) policy and configuration are required to support Always On VPN with Entra Conditional Access.
NPS Policy
To update the Always On VPN network policy to support Entra Conditional Access, open the NPS management console (nps.msc), expand Policies, then select Network Policies and perform the following steps.
- Right-click on the Always On VPN policy and choose Properties.
- Select the Settings tab.
- Select Vendor Specific in the RADIUS Attributes section.
- Click Add.
- Select the Allowed-Certificate-OID attribute.
- Click Add.
- Click Add.
- Enter 1.3.6.1.4.1.311.87 in the Attribute value field.
- Click Ok.
- Click Ok.
- Click Close.
- Click Ok.
Important Note: This change will block new Always On VPN user tunnel connections until you update the client configuration. When integrating an existing Always On VPN implementation with Entra Conditional Access, consider creating a new NPS policy and corresponding security group to migrate users to conditional access seamlessly.
NPS Configuration
By default, NPS will perform revocation checks for certificates used for domain authentication. However, Entra Conditional Access uses short-lived certificates (one-hour lifetime) that do not include CRL Distribution Point (CDP) information. Therefore, administrators must change the NPS server configuration to disable revocation checking for certificates lacking this information.
To do this, open the registry editor (regedit.exe) and create a new registry key with the following settings.
Key: HKLM\SYSTEM\CurrentControlSet\Services\RasMan\PPP\EAP\13
Name: IgnoreNoRevocationCheck
Type: DWORD
Value: 1
You can also run the following PowerShell command to implement this change.
New-ItemProperty -Path ‘HKLM:\SYSTEM\CurrentControlSet\Services\RasMan\PPP\EAP\13\’ -Name IgnoreNoRevocationCheck -PropertyType DWORD -Value 1 -Force
Once complete, the server must be rebooted for the change to take effect.
Client Configuration
After making all required changes to the supporting infrastructure, you must also update the Always On VPN client configuration to leverage Entra Conditional Access. Changes to client configuration vary depending on the method used to deploy and manage Always On VPN client configuration settings.
Intune
When using Microsoft Intune and the native VPN policy type to deploy and manage Always On VPN client configuration settings, perform the following steps to update the VPN configuration to include Entra Conditional Access support.
- Open the Microsoft Intune admin center (https://intune.microsoft.com/) and navigate to Devices > Configuration.
- Click on the Always On VPN policy.
- Click Edit next to Configuration settings.
- Expand the Conditional Access section.
- Click Enable next to Conditional access for this VPN connection.
- Click Enable next to Single sign-on (SSO) with alternate certificate.
- Enter Client Authentication in the Name field.
- Enter 1.3.6.1.5.5.7.3.2 in the Object Identifier field.
- Enter the organization’s root certification authority (CA) certificate thumbprint in the Issuer hash field.
XML
When using a custom XML configuration file for Always On VPN client configuration settings deployed using Intune or PowerShell, edit the XML file, remove the existing <TLSExtensions></TLSExtensions> section, and replace it with the following.
In addition, add the following code between the <VPNProfile></VPNProfile> tags after <TrustedNetworkDetection>.
Note: You will find a sample XML configuration file you can copy and paste from on GitHub here.
DPC
When using Always On VPN Dynamic Profile Configurator (DPC) for managing Always On VPN client configuration settings, open the DPC group policy and navigate to Computer Configuration > Policies > Administrative Templates > DPC Client > User Tunnel Settings > Advanced and perform the following steps.
- Double-click Optional – Device Compliance Settings.
- Select Enabled.
- Enter 1.3.6.1.5.5.7.3.2 in the Certificate EKU OID field.
- Enter the organization’s root certification authority (CA) certificate thumbprint in the Certificate Issuer Hash field.
- Click Ok.
Not using DPC? You’re missing out! Learn more about Always On VPN DPC here.
Video
I’ve published a demonstration video for enabling Microsoft Entra ID Conditional Access with Always On VPN on YouTube. You can find the video here.
Summary
Following the guidance in this post to integrate Entra Conditional Access with Always On VPN can significantly improve your organization’s security posture. In the example above, the conditional access policy is a basic one. Yet, it dramatically reduces the attack surface for your remote access infrastructure by ensuring only compliant devices can establish a VPN connection.
Administrators can use advanced conditional access policy settings to strengthen the VPN’s security further by performing additional checks, such as requiring strong, phishing-resistant credentials and requesting multifactor authentication (MFA) for risky sign-ins.
Additional Information
Always On VPN and Entra Conditional Access
Drawback of Multifactor Authentication
Understanding Enterprise Public Key Infrastructure (PKI)
Digital Certificates for Strong Authentication