Fix AD FS Web Application Proxy Trust Relationship Errors
Question details
The user needs to fix a deployment failure where the AD FS Web Application Proxy cannot establish a trust relationship with the Federation Server.

- Product
- AD FS Web Application Proxy
- Device & OS
- not provided
- Scenario
- Deploying and configuring an AD FS Web Application Proxy server for external access.
- Observed behavior
- The deployment fails with an error indicating that a trust relationship with the Federation Server could not be established.
Ensure you have administrative privileges on both the Web Application Proxy (WAP) and the primary AD FS servers, and verify that the firewall allows HTTPS traffic between them.
Verify Network Connectivity, DNS, and Time Synchronization
Ensure fundamental connectivity and system synchronization are properly configured between the WAP and AD FS servers.
A trust relationship cannot be established if the WAP server cannot communicate with the AD FS server or if their system clocks are out of sync. Network and DNS misconfigurations are the most common causes.
Confirm that HTTPS port 443 is open and not being blocked by any internal firewalls between the WAP and AD FS servers.
On the WAP server, ping the AD FS federation service name to ensure it correctly resolves to the internal IP address of the AD FS server, not the external IP.
Ensure both the WAP and AD FS servers have their system clocks synchronized to the same NTP server to prevent Kerberos or SSL token expiration errors.

Validate Certificates and AD FS Endpoints
Ensure SSL certificates match your federation service name and that the proxy endpoints are enabled.
Simplify Your Workflow with WPS Office
While managing complex enterprise network environments requires heavy specialized servers, your daily document management shouldn't. WPS Office provides a free, lightweight, and highly compatible alternative to Microsoft Office, ensuring smooth document creation without straining system resources.
- 1. Download the Installer: Visit the official WPS Office website and download the free installer for your operating system.
- 2. Install the Software: Run the setup file and follow the on-screen prompts to complete a fast, lightweight installation.
- 3. Start Creating: Open WPS Office and instantly start editing your existing Microsoft Office documents without any formatting loss.

Frequently Asked Questions
Why does the WAP configuration wizard fail with a trust error?
This failure usually occurs when the WAP server cannot reach the AD FS server over port 443, when DNS resolution is pointing to the wrong IP, or if there is a mismatch in the SSL certificate subject names.
How do I check if my WAP and AD FS servers are time-synchronized?
You can use the 'w32tm /query /status' command in the Command Prompt on both servers to verify that they are syncing from the same time source and that their times accurately match.
Which PowerShell command enables the AD FS endpoint for proxying?
You can use the Enable-AdfsEndpoint cmdlet on the primary AD FS server to enable specific endpoints, ensuring the Proxy property is set to True for the necessary extranet services.




