I just wanted to share some info regarding an issue I was running into (and fixed) while testing Windows 11.
I have both Device Tunnels and User Tunnels set up. The Device Tunnels, which only support IKEv2, work no problem authenticating with their machine certs against the VPN server. The User Tunnels, however, were running into certificate issues, most commonly complaining about a policy mismatch. Often an 853 error on the client, event IDs 20255 and 20271 on the VPN server, and a Reason Code 16 “Authentication failed due to a user credentials mismatch. Either the user name provided does not map to an existing user account or the password was incorrect” on the NPS Server.
For me, it was a CAPITALIZATION issue in the subject name of the NPS Server’s certificate. Essentially, the PEAP settings of the VPN profile were specifying npsserverhostname.domain.com (NOTE: there are 2 of these entries in your profile), but the subject name of the actual certificate on the NPS server was NPSSERVERHOSTNAME.domain.com
After manually testing this by adjusting my PEAP settings on a test machine to match the UPPERCASE that existed in the NPS cert’s subject, I decided to leave the profile alone and instead adjust / fix the UPPERCASE subject name for the cert.
To do this:
-I edited the dNSHostName attribute of the NPS server’s computer object in Active Directory. Changed that from NPSSERVERHOSTNAME.domain.com to npsserverhostname.domain.com.
-Then I went to my CA>Manage Certificate Templates>right-clicked on the NPS server certificate template>”Reenroll All Certificate Holders.
-Back on the NPS server, from an administrative command prompt forced the reenroll by entering “certutil -pulse” and verified the new certificate now had the lowercase version of npsserverhostname.domain.com.
With the PEAP settings for the server name in section of my profile XML matching case sensitively with the subject name of the NPS server’s certificate, everything works a charm.
This was never an issue prior to Windows 11. I’ve yet to see anything about this in all my googling over the past month or so, so I hope this can help someone else. I’m sure I won’t be the only one who has some mismatching on their case sensitivity here.
There’s also a little bit of discussion on this over on Richard Hicks’ site as I first inquired with him when my troubleshooting was coming up short.
Troubleshooting Always On VPN Error 853 | Richard M. Hicks Consulting, Inc. (richardhicks.com)
Hopefully this can help some others