Azure P2S VPN connection fails "The certificate’s CN name does not match the passed value"

Dominique September 1 Reputation point
2023-09-28T11:40:42.31+00:00

We've had a point to site VPN gateway configured for quite a while now, but suddenly this week we received the following error when connecting:

"The certificate’s CN name does not match the passed value"

We make use of self-signed Root and Client certificates, and have used this since the beginning with no issues for client authentication.

All the articles we've found (almost none on MS), explain that we need to include the VPN's DNS address as CN in a new Root certificate, which we have done. We still get the same issue.

Has anything changed in the last week in terms of how you are allowed to connect to P2S VPN on Azure?

All documentation still points to the approach we've used, but no success.

https://video2.skills-academy.com/en-us/azure/vpn-gateway/vpn-gateway-howto-point-to-site-resource-manager-portal

Any assistance will be appreciated!

Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,524 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.