Skip to content

Commit 6a9e166

Browse files
authored
Merge pull request #312196 from cherylmc/s2s-certificates
New article
2 parents 1f355f9 + f1c7251 commit 6a9e166

5 files changed

Lines changed: 670 additions & 11 deletions

File tree

articles/vpn-gateway/TOC.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@
7272
href: vpn-gateway-about-vpn-gateway-settings.md
7373
- name: IPv6 configuration settings
7474
href: ipv6-configuration.md
75+
- name: About site-to-site VPN connections with certificate authentication
76+
href: site-to-site-certificate-authentication-gateway-about.md
7577
- name: Create & manage a VPN gateway
7678
items:
7779
- name: Create a VPN gateway
@@ -123,7 +125,11 @@
123125
- name: Azure CLI
124126
href: vpn-gateway-howto-site-to-site-resource-manager-cli.md
125127
- name: Configure site-to-site connections - certificate
126-
href: site-to-site-certificate-authentication-gateway-portal.md
128+
items:
129+
- name: Azure portal
130+
href: site-to-site-certificate-authentication-gateway-portal.md
131+
- name: Azure PowerShell
132+
href: site-to-site-certificate-authentication-gateway-powershell.md
127133
- name: Connect AWS and Azure using a BGP-enabled VPN gateway
128134
href: vpn-gateway-howto-aws-bgp.md
129135
- name: Site-to-site with ExpressRoute connections
309 KB
Loading
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
---
2+
title: 'About Site-to-site VPN Connections with Certificate Authentication'
3+
titleSuffix: Azure VPN Gateway
4+
description: Learn about site-to-site VPN connections with certificate authentication.
5+
author: cherylmc
6+
ms.service: azure-vpn-gateway
7+
ms.topic: concept-article
8+
ms.date: 02/24/2026
9+
ms.author: cherylmc
10+
11+
# Customer intent: "As a network engineer, I want to understand how to establish a secure site-to-site VPN connection using certificate authentication, so that I can securely connect my on-premises network to my Azure virtual network."
12+
---
13+
14+
# About site-to-site VPN connections with certificate authentication - Preview
15+
16+
This article helps you understand site-to-site (S2S) VPN gateway connections between your on-premises network and an Azure virtual network that use X.509 certificate-based authentication. Certificate authentication provides stronger security compared to preshared keys (PSK) for VPN connections.
17+
18+
Site-to-site certificate authentication relies on both inbound, and outbound certificates to establish secure VPN tunnels. Certificates are securely stored in Azure Key Vault. Each VPN gateway accesses its certificates through a User-Assigned Managed Identity.
19+
20+
> [!IMPORTANT]
21+
> Site-to-site certificate authentication isn't supported on Basic SKU VPN gateways. We recommend using VpnGw1AZ or higher.
22+
23+
:::image type="content" source="./media/site-to-site-certificate-authentication/certificate-diagram.png" alt-text="Diagram that shows site-to-site VPN gateway cross-premises connections using certificates." lightbox="./media/site-to-site-certificate-authentication/certificate-diagram.png":::
24+
25+
> [!IMPORTANT]
26+
> Site-to-site certificate authentication is currently in Preview.
27+
> See the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
28+
29+
## Certificates
30+
31+
Site-to-site VPN certificate authentication uses X.509 certificates instead of preshared keys. This approach offers several advantages:
32+
33+
* **Enhanced security:** Certificates provide stronger authentication than shared secrets.
34+
35+
* **Managed identity integration:** VPN gateways access certificates securely through Azure Key Vault.
36+
37+
* **RBAC support:** Fine-grained access control using Azure Role-Based Access Control (RBAC).
38+
39+
For this solution, inbound and outbound certificates don't need to be signed from the same root certificate.
40+
41+
### Outbound certificates
42+
43+
The outbound certificate is used to verify connections coming from Azure to your on-premises site.
44+
45+
* The certificate is stored in Azure Key Vault. You specify the outbound certificate path identifier when you configure your site-to-site connection.
46+
* You can create a certificate using a certificate authority of your choice, or you can create a self-signed root certificate.
47+
48+
When you generate an outbound certificate, the certificate must adhere to the following guidelines:
49+
50+
* Minimum key length of 2048 bits.
51+
* Must have a private key.
52+
* Must have server and client authentication.
53+
* Must have a subject name.
54+
55+
### Inbound certificates
56+
57+
The inbound certificate is used when connecting from your on-premises location to Azure.
58+
59+
* The subject name value is used when you configure your site-to-site connection.
60+
* The certificate chain public key is specified when you configure your site-to-site connection. The certificate chain public key isn't encrypted and in .cer format (Base-64 encoded X.509)
61+
62+
## Certificate flow
63+
64+
Site-to-site VPN certificate authentication relies on a digital certificate chain in which each leaf certificate is signed by a trusted Root Certification Authority (Root CA). The VPN tunnel negotiation relies on validating these certificates in both directions.
65+
66+
### Outbound certificate flow
67+
68+
The outbound certificate flow is Azure to on-premises.
69+
70+
* The outbound authentication certificate (.pfx, with its private key) is securely stored in Azure Key Vault.
71+
* The Azure VPN gateway retrieves this certificate using its User Assigned Managed Identity.
72+
* During tunnel establishment, the gateway presents the outbound leaf certificate to the on-premises VPN device, allowing the Azure side to authenticate itself to the remote peer.
73+
74+
### Inbound certificate flow
75+
76+
The inbound flow is on-premises to Azure.
77+
78+
* The public portion of the inbound certificate chain (.cer files) is uploaded to and configured within the VPN connection settings in Azure.
79+
* The on-premises VPN device presents its own leaf certificate, signed by its corresponding Root CA.
80+
* Azure validates the incoming certificate by checking the full certificate chain against the configured inbound Root CA and intermediate certificates. Azure will only accept the remote device as a trusted peer if the chain is valid.
81+
82+
## Next steps
83+
84+
To create a site-to-site VPN connection using certificate authentication, see the following articles:
85+
86+
* [Configure a site-to-site VPN with certificate authentication - Azure portal](site-to-site-certificate-authentication-gateway-portal.md)
87+
* [Configure a site-to-site VPN with certificate authentication - Azure PowerShell](site-to-site-certificate-authentication-gateway-powershell.md)

articles/vpn-gateway/site-to-site-certificate-authentication-gateway-portal.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,31 @@
11
---
2-
title: 'Create S2S VPN connection between on-premises network and Azure virtual network - certificate authentication: Azure portal'
2+
title: 'Create S2S VPN Connection Between On-premises Network and Azure Virtual Network - Certificate Authentication: Azure Portal'
33
titleSuffix: Azure VPN Gateway
44
description: Learn how to configure VPN Gateway server settings for site-to-site configurations - certificate authentication.
55
author: cherylmc
66
ms.service: azure-vpn-gateway
77
ms.topic: how-to
8-
ms.date: 12/17/2024
8+
ms.date: 02/24/2026
99
ms.author: cherylmc
1010

1111
#customer intent: As a network engineer, I want to create a site-to-site VPN connection between my on-premises location and my Azure virtual network using certificate authentication and Azure Key Vault.
1212

1313
# Customer intent: "As a network engineer, I want to establish a secure site-to-site VPN connection using certificate authentication, so that I can securely connect my on-premises network to my Azure virtual network."
1414
---
15-
# Configure a S2S VPN Gateway certificate authentication connection - Preview
15+
# Configure a S2S VPN Gateway certificate authentication connection - Azure portal - Preview
1616

17-
In this article, you use the Azure portal to create a site-to-site (S2S) certificate authentication VPN gateway connection between your on-premises network and your virtual network. The steps for this configuration use Managed Identity, Azure Key Vault, and certificates. If you need to create a site-to-site VPN connection that uses a shared key instead, see [Create a S2S VPN connection](tutorial-site-to-site-portal.md).
17+
In this article, you use the Azure portal to create a site-to-site (S2S) certificate authentication VPN gateway connection between your on-premises network and your virtual network. The steps for this configuration use Managed Identity, Azure Key Vault, and certificates. For more information about site-to-site certificate authentication, see [About site-to-site VPN connections with certificate authentication](site-to-site-certificate-authentication-gateway-about.md). If you need to create a site-to-site VPN connection that uses a shared key instead, see [Create a S2S VPN connection](tutorial-site-to-site-portal.md).
1818

1919
:::image type="content" source="./media/tutorial-site-to-site-portal/diagram.png" alt-text="Diagram that shows site-to-site VPN gateway cross-premises connections." lightbox="./media/tutorial-site-to-site-portal/diagram.png":::
2020

21+
> [!IMPORTANT]
22+
> Site-to-site certificate authentication is currently in Preview.
23+
> See the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/) for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
24+
2125
## Prerequisites
2226

23-
> [!NOTE]
24-
> Site-to-site certificate authentication isn't supported on Basic SKU VPN gateways.
27+
> [!IMPORTANT]
28+
> Site-to-site certificate authentication isn't supported on Basic SKU VPN gateways. We recommend using VpnGw1AZ or higher.
2529
2630
* You already have a virtual network and a VPN gateway. If you don't, follow the steps to [Create a VPN gateway](tutorial-create-gateway-portal.md), then return to this page to configure your site-to-site certificate authentication connection.
2731

@@ -101,7 +105,7 @@ Use PowerShell locally on your computer to generate certificates. The following
101105
Use the New-SelfSignedCertificate cmdlet to create a self-signed root certificate. For more information about parameters, see [New-SelfSignedCertificate](/powershell/module/pki/new-selfsignedcertificate).
102106

103107
1. From a computer running Windows 10 or later, or Windows Server 2016, open a Windows PowerShell console with elevated privileges.
104-
1. Create a self-signed root certificate. The following example creates a self-signed root certificate named 'VPNRootCA01', which is automatically installed in 'Certificates-Current User\Personal\Certificates'. Once the certificate is created, you can view it by opening *certmgr.msc*, or *Manage User Certificates*.
108+
1. Create a self-signed root certificate. The following example creates a self-signed root certificate named 'VPNRootCA01', which is automatically installed in **Certificates-Current User\Personal\Certificates**. Once the certificate is created, you can view it by opening *certmgr.msc*, or *Manage User Certificates*.
105109

106110
Make any needed modifications before using this example. The 'NotAfter' parameter is optional. By default, without this parameter, the certificate expires in one year.
107111

@@ -243,7 +247,7 @@ The following steps help you upload the outbound certificate information to Azur
243247
1. Go to your key vault. In the left pane, open the **Access policies** page.
244248
1. Select **+Create**.
245249
1. On the **Create an access policy** page, for **Secret Management Options** and **Certificate Management Operations**, select **Select all**.
246-
1. Select **Next** to move to the *Principal** page.
250+
1. Select **Next** to move to the **Principal** page.
247251
1. On the **Principal** page, search and select the Managed Identity that you created earlier.
248252
1. Select **Next** and advance to the **Review + create** page. Select **Create**.
249253

@@ -331,6 +335,8 @@ Before moving forward, gather the following information for the required configu
331335

332336
## Next steps
333337

334-
Once your connection is complete, you can add virtual machines to your VNets. For more information, see [Virtual Machines](../index.yml). To understand more about networking and virtual machines, see [Azure and Linux VM network overview](../virtual-network/network-overview.md).
338+
Once your connection is complete, you can configure additional VPN Gateway settings. For more information, see the following articles:
335339

336-
For P2S troubleshooting information, [Troubleshooting Azure point-to-site connections](vpn-gateway-troubleshoot-vpn-point-to-site-connection-problems.md).
340+
* [About VPN Gateway configuration settings](vpn-gateway-about-vpn-gateway-settings.md)
341+
* [Configure BGP for VPN Gateway](vpn-gateway-bgp-overview.md)
342+
* [About highly available VPN gateway connections](vpn-gateway-highlyavailable.md)

0 commit comments

Comments
 (0)