Troubleshoot External AD FS Proxy TLS Errors on Windows Server
Question details
Determine why external AD FS access through Web Application Proxy produces a TLS security error while internal access works.

- Product
- Active Directory Federation Services and Web Application Proxy
- Device & OS
- Windows Server 2012 R2
- Scenario
- An AD FS farm is accessible internally, and its Web Application Proxy can retrieve configuration. The administrator wants to verify external authentication for Microsoft 365 and other services.
- Observed behavior
- External access through the proxy produces a TLS security error, despite the proxy using a wildcard certificate.
Identify the AD FS service FQDN, the public IP address of the Web Application Proxy, and the exact browser TLS error. Have access to public DNS, the proxy's local certificate store, and an external test device.
Verify AD FS DNS, the Proxy Certificate, and External Sign-In
Use this approach when AD FS works internally but external connections fail with a certificate or TLS error.
On an AD FS server, open PowerShell and run Get-AdfsProperties. Identify the federation service name, then use that same FQDN for internal and external AD FS access.
From an external network, run nslookup followed by the AD FS FQDN. Confirm that the public record resolves to the Web Application Proxy's public IP address or its external load balancer.
On the proxy, open certlm.msc and check Personal > Certificates. Confirm that the certificate has a private key, is valid, is trusted by external clients, and covers the AD FS FQDN. For a wildcard certificate, check that the name matches the wildcard's domain level.
From an external Windows device, run Test-NetConnection <AD FS FQDN> -Port 443. On the proxy, open Event Viewer > Applications and Services Logs > Microsoft > Windows > WebApplicationProxy > Admin and review errors for certificate or proxy configuration details.
From an external device, open the Microsoft 365 sign-in page and enter an account from a domain configured for federation. Confirm that sign-in redirects to the AD FS service and completes without a TLS warning.

Review Web Application Proxy Publishing and Federation Configuration
Use this check if you are unsure whether to select AD FS or pass-through when publishing applications.
Work on Office Files with WPS Office
WPS Office is a free, lightweight alternative with a familiar interface and Microsoft Office format compatibility for an easier move between office suites. It does not repair AD FS or Web Application Proxy authentication.

Frequently Asked Questions
Should internal and external AD FS names be the same?
Use the same federation service FQDN internally and externally. Internal DNS can resolve it to the internal AD FS service, while public DNS resolves it to the Web Application Proxy or its external load balancer.
Can a wildcard certificate cause an AD FS TLS warning?
Yes. In certlm.msc on the proxy, check that the wildcard covers the federation FQDN, has a private key, is valid, and chains to a certificate authority trusted by external clients.
Why doesn't Microsoft 365 redirect me to AD FS?
The domain entered on the Microsoft 365 sign-in page must be configured for federation. Check the domain's authentication configuration and test with an account in that domain; a managed domain will not normally redirect to AD FS.
Should I select AD FS or pass-through when publishing an application?
In the Web Application Proxy publishing wizard, choose AD FS when the application is configured for AD FS preauthentication. Choose Pass-through when the application handles authentication itself. This choice is separate from configuring the proxy for AD FS federation endpoints.
Can I disable DirSync after enabling AD FS?
AD FS handles federated authentication, while directory synchronization updates users and attributes. Enabling AD FS does not make synchronization unnecessary. Review your identity-management requirements and plan any synchronization change before disabling it.




