About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
Error 13801 is an IKEv2 certificate or identity failure: Windows will not accept the credentials presented during IKE authentication. Microsoft lists server certificate Enhanced Key Usage, expiry, missing root on the client, and a VPN server name that does not match the certificate subjectName. This is distinct from error 809 (no server response) and from error 800 when tunnels fail more broadly. The live VPN certificate trust store recovery article covers strongSwan swanctl restore, not Windows IKEv2 certificates—use it only for that stack.
What the symptom means
Remote access guidance states:
Error code: 13801 - IKE authentication credentials are unacceptable.
Always On VPN troubleshooting for 13801 lists causes:
- The machine certificate for IKEv2 on the RAS server lacks Server Authentication under Enhanced Key Usage.
- The machine certificate has expired.
- The client lacks the root certificate needed to validate the RAS server certificate.
- The client VPN server name does not match subjectName on the server certificate.
Solutions Microsoft gives: verify Server Authentication EKU; ensure a valid certificate; install the root on the client; connect using an FQDN matching the cert.
Likely causes (our reading)
| Cause | What you see | How to confirm |
|---|---|---|
| Missing Server Authentication EKU | All IKEv2 clients fail 13801 | Inspect RAS cert EKU (read-only) |
| Expired RAS machine cert | Failure starts after cert date | Certificate MMC or certutil -store on server |
| Client missing issuing root | Some devices fail, others work | Compare trusted roots |
| IP address instead of FQDN in profile | 13801 despite valid cert | Profile server name vs subject |
| Wrong cert bound to IKE on RAS | After cert renewal | RRAS/IKE binding (admin) |
Prove the cause before changing anything
These steps only read.
1. Confirm 13801 in the client error or RAS logs.
2. On the client, read the VPN server name in connection properties—compare to the RAS certificate subject (FQDN).
3. On the client, open Certificate Manager (certmgr) and check whether the issuing root and intermediate chain for the RAS server cert are trusted (view only). Always On VPN troubleshooting also cites certutil -store -user My for user certificate stores where relevant.
4. On the RAS server (administrator), open the bound machine certificate and confirm Enhanced Key Usage includes Server Authentication and NotAfter is in the future.
Fix
Install root or intermediate on the client
Export the client’s current Trusted Root Certification Authorities list for reference (read-only listing saved to file). Before you change anything, write down the thumbprint of the certificate you are about to import (from the file or from the PKI administrator) so undo has an exact value:
Get-ChildItem Cert:\LocalMachine\Root | Select-Object Subject, Thumbprint | Export-Csv "$env:USERPROFILE\roots-before.csv"
Also record: echo "imported_root_thumbprint=<thumbprint-before-import>" > roots-import-thumbprint.txt
Risk: the next step adds a CA certificate to the client trust store. Trusting the wrong root enables impersonation of any cert issued by that CA until removed.
Import only the root (or required intermediate) your PKI administrator provides for the RAS server chain. Confirm the imported certificate’s thumbprint matches roots-import-thumbprint.txt.
To undo it: remove the imported certificate by thumbprint from Local Computer → Trusted Root Certification Authorities using the thumbprint in roots-import-thumbprint.txt, or restore from a golden image.
Change VPN server name to match certificate FQDN
Save the current server address as the exact present value:
echo "vpn_server_name_before=<exact-value>" > vpn-13801-server-before.txt
Risk: the next step changes where the client sends IKE. A typo blocks all users on that profile until restored.
Edit the VPN connection so Server name or address equals the subjectName (FQDN) on the RAS machine certificate, as Microsoft directs.
To undo it: set the server name back to the value recorded in vpn-13801-server-before.txt.
Replace, reissue, or renew the RAS machine certificate (administrator)
Back up the current cert binding documentation and export or archive the present certificate before replacement:
echo "ras_cert_thumbprint=<value> eku=<note> expiry=<date> export_path=<pfx-or-backup-path>" > ras-cert-before.txt
Disruptive step: replacing or renewing the IKE certificate cannot bring an expired certificate back into use. IKEv2 sessions may drop during rollover; clients need the new chain trusted. Plan the change window before you enrol.
Request or enrol a new machine certificate with Server Authentication EKU. Our own advice: bind it to RRAS IKEv2 and distribute updated root if the CA changed. Retest 13801 from one pilot client before wide rollout.
To undo it: rebind the previous certificate using ras-cert-before.txt only if that certificate is still within its NotAfter window and you still hold the private key; otherwise complete forward rollover. An expired certificate cannot be reinstated.
Confirm the fix
- IKEv2 connects without 13801 using the FQDN on the certificate.
- Certificate MMC or
certutil -store(Always On VPN citescertutil -store -user Myfor user stores) shows valid EKU and chain on the relevant cert. - Clients without extra manual trust receive the chain via GPO or MDM if that is your standard.
What to watch afterwards
- Our reading: auto-enrolled certs expiring without RRAS rebinding can bring 13801 back overnight.
- Our reading: load balancers terminating IKE need the same cert rules on each node.
- Broader tunnel failures after connect may match error 800.
Read next
Related articles you may want next.
- TroubleshootingVPN error 800: attempted VPN tunnels failedVPN error 800: attempted VPN tunnels failed. Check server reachability, set a specific tunnel type, and verify L2TP/IPsec and IKE settings.Read article
- TroubleshootingVPN error 809: remote server is not respondingVPN error 809: remote server not responding. Check UDP 500 and 4500 through firewalls and NAT before you blame credentials or profiles.Read article
- Backup & RecoveryVPN recovery: the tunnel configuration is not the private keyWhich strongSwan swanctl directories hold keys, certificates and CRLs, and why a restored swanctl.conf without them does not bring the tunnel back.Read article
Risks and limits
These steps have not been lab-tested.
User certificates for EAP-TLS are adjacent but not identical to IKE machine cert requirements. Private CAs require disciplined root distribution.
Sources
- Troubleshoot Remote Access VPN and Always On VPN — Microsoft Learn, page dated 12 February 2026, accessed 3 December 2026
- Troubleshoot Always On VPN — Microsoft Learn, page dated 12 February 2026, accessed 3 December 2026
This article was originally published on .