Use this recovery path for broken WAP proxy trust:
- Verify time and time zone on every AD FS and WAP server. Proxy trust can fail if clocks are skewed or if time matches but the time zone does not.
- Check the AD FS TLS/SSL binding on the primary AD FS server:
- Run
Get-AdfsCertificate -CertificateType Service-Communications | select Thumbprint - Run
netsh http show sslcert - Confirm the hostname matches the federation service name.
- Confirm the certificate thumbprint matches the
certhash. - Confirm the
Ctl Store NameisAdfsTrustedDevices. - Repeat the
netsh http show sslcertcheck on all AD FS and WAP servers.
- Run
- Check certificate stores:
- In
AdfsTrustedDevices, keep only the MS-Organization-Access certificate and the proxy trust certificates for the WAP servers. - Delete any CA-issued, non-self-signed TLS/SSL server certificate from
AdfsTrustedDevices. - On all AD FS and WAP servers, check the trusted root store for non-self-signed certificates:
If any are found there, move them to the intermediate store.Get-ChildItem cert:\LocalMachine\root -Recurse | Where-Object {$_.Issuer -ne $_.Subject} | Format-List * | Out-File "c:\computer_filtered.txt"
- In
- If the certificate was recently rotated, update the TLS/SSL certificate settings on the affected AD FS and WAP servers. If Microsoft Entra Connect Sync is present, use it to update the TLS/SSL certificate bindings on all servers. If it is not present, regenerate the AD FS certificate binding on the AD FS server with:
Set-AdfsSslCertificate -Thumbprint <thumbprint> - Check for SSL/TLS termination between WAP and AD FS. If a network device is terminating SSL/TLS between them, disable that termination because WAP-to-AD FS communication depends on client certificates.
- Check AD FS replication health on secondary AD FS servers in the AD FS MMC and fix any sync issues.
- Validate the AD FS service account SPNs:
-
setspn -f -q host/<federation service name> -
setspn -f -q http/<federation service name>The host SPN should resolve to the AD FS service account, and the HTTP SPN should resolve to one of the AD FS servers.
-
- Re-establish the WAP trust. This is the supported reset step when trust is invalid:
If replacing the WAP TLS/SSL certificate and the old certificate has already expired, reconfigure the proxy with credentials for a domain user who is a local administrator on the AD FS server:Install-WebApplicationProxy -FederationServiceName fs.contoso.com -CertificateThumbprint "<thumbprint>"$cred = Get-Credential Install-WebApplicationProxy -FederationServiceTrustCredential $cred -CertificateThumbprint '<thumbprint of new cert>' -FederationServiceName 'fs.contoso.com' - If PowerShell reports that the trust certificate is not valid or configuration data was not found in AD FS, run
Install-WebApplicationProxyagain after confirming clock sync and AD FS reachability.
- Proxy trust between WAP and the AD FS server is broken
- Proxy trust between WAP and the AD FS server is broken
- Users can't sign in by using AD FS from an external network
- Manage TLS/SSL certificates in AD FS and WAP in Windows Server 2016
- Troubleshoot SSO issues with Active Directory Federation Services (AD FS)
- Troubleshoot Web Application Proxy