Skip to content

Ulysses Neves

Microsoft Entra ID, authentication, and hybrid identity troubleshooting.

Menu
  • Início
  • Microsoft Azure
  • Microsoft AD FS
  • Microsoft 365
  • Contact
Menu

AD FS – Fixing error message ‘No client certificate associated with the request was found’ when establishing WAP Trust

Posted on 31 de March de 2022

Hi everyone. Today we’re going to cover the error message ‘No client certificate associated with the request was found.’ during Web Application Proxy trust configuration.

Identifying the error:

In case you try to setup the WAP trust using PowerShell Command ‘Install-WebApplicationProxy’, you might get error message below:

Install-WebApplicationProxy : Unable to retrieve proxy configuration data from the Federation Server.
At line:1 char:1

  • Install-WebApplicationProxy -FederationServiceName “fs.contoso …
  • ~~~~~~~~~~~~~~~~~
    • CategoryInfo : NotSpecified: (:) [Install-WebApplicationProxy], ConfigurationErrorsException
    • FullyQualifiedErrorId : DeploymentTask,Microsoft.IdentityServer.Management.Proxy.Commands.InstallProxyCommand

Checking AD FS Tracing events on the WAP server, we find error below when AD FS Tracing is enabled. If you don’t know how to enable AD FS Debug tracing, please check this official Microsoft guide:

Request for configuration failed with status:ProtocolError
Message: The remote server returned an error: (401) Unauthorized.
Exception:System.Net.WebException: The remote server returned an error: (401) Unauthorized.
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.IdentityServer.Management.Proxy.StsConfigurationProvider.GetStsProxyConfiguration(X509Certificate2 trustCert)

Checking Admin logs on the AD FS server, we see events below:

The federation server proxy was not able to authenticate to the Federation Service.

User Action
Ensure that the proxy is trusted by the Federation Service. To do this, log on to the proxy computer with the hostname that is identified in the certificate subject name and re-establish trust between the proxy and the Federation Service using the Install-WebApplicationProxy cmdlet.

Additional Data
Certificate details: Null
Thumbprint: Null
NotAfter Time: Null
Client endpoint: WAP server’s IP

With AD FS Tracing logs enabled on the AD FS server, we can capture event ID 107 with errors below:

TlsRequestVerificationMethod: Incoming request didnt contain a cert.

Error retrieving proxy configuration.
Microsoft.IdentityServer.WebHost.Proxy.ProxyTrustException: No client certificate associated with the request was found.
at Microsoft.IdentityServer.Web.Proxy.TlsRequestVerificationMethod.VerifyTrustedRequest(WrappedHttpListenerContext context, String& auditInformation)
at Microsoft.IdentityServer.Web.Rest.RestRequestHandler.OnGetContext(WrappedHttpListenerContext context)

ProxyRequestHandler.DefaultExceptionHandler: ProxyTrust could not be verified for certificate with subject name ” and thumbprint ”.

Exception details:
Exception: No client certificate associated with the request was found.
StackTrace: at Microsoft.IdentityServer.Web.Proxy.TlsRequestVerificationMethod.VerifyTrustedRequest(WrappedHttpListenerContext context, String& auditInformation)
at Microsoft.IdentityServer.Web.Rest.RestRequestHandler.OnGetContext(WrappedHttpListenerContext context)

Reason:

A TLS certificate is used by WAP service to establish a secure communication with AD FS during the WAP trust process before sending a self-signed certificate to be used as the authentication method after the trust is established. If AD FS does not trust the TLS certificate, the communication breaks and the trust is not established.

Investigation:

Normally when the TLS bindings are correctly setup on the AD FS using PowerShell command ‘Set-adfssslcertificate’, but in case the bindings were created manually, the administrator might lose some important parameters to have this working fine.

To confirm if the AD FS bindings are correctly configured on this scenario, run command below on AD FS server:

netsh http show sslcert  

In the output, check if the federation binding on port 443 does have Ctl Store Name as AdfsTrustedDevices. If it’s set to NULL, we can confirm as the reason to face the issue during WAP trust:.

Example:

Hostname:port : fs.contoso.com:443
Certificate Hash : bcd11d61c09b2f991120b8d9638fa3fff93a0985
Application ID : {5d89a20c-beab-4389-9447-324788eb944a}
Certificate Store Name : MY
Verify Client Certificate Revocation : Enabled
Verify Revocation Using Cached Client Certificate Only : Disabled
Usage Check : Enabled
Revocation Freshness Time : 0
URL Retrieval Timeout : 0
Ctl Identifier : (null)
Ctl Store Name : AdfsTrustedDevices
DS Mapper Usage : Disabled
Negotiate Client Certificate : Disabled
Reject Connections : Disabled
Disable HTTP2 : Not Set
Disable QUIC : Not Set
Disable TLS1.2 : Not Set
Disable TLS1.3 : Not Set
Disable OCSP Stapling : Not Set
Disable Legacy TLS Versions : Not Set

Fix:

To fix this issue, on the AD FS server, open a command prompt as administrator and remove the hostname binding using command below:

netsh http delete sslcert hostnameport=fs.contoso.com:443

Note: Change the federation’s name ‘fs.contoso.com’ to the value name configured in your farm and retrieved by the command ‘netsh http show sslcert’.

To create the new binding with correct parameters, run the PowerShell command below:

Set-AdfsSslCertificate -Thumbprint 'TLS CERT THUMBPRINT'

On Command prompt, check is a new binding has been created for hostnameport=fs.contoso.com:443 with correct ctl store name containing the store AdfsTrustedDevices value as below:

Sometimes, the PowerShell command does not create the binding so, as an alternative, you can manually create it using netsh command with parameters below:

netsh http add sslcert hostnameport=fs.contoso.com:443 certhash=THUMBPRINT appid="{5d89a20c-beab-4389-9447-324788eb944a}" certstorename=My verifyclientcertrevocation=Enable sslctlstorename=AdfsTrustedDevices

Note: Update the parameters above according to your AD FS information and check this official Microsoft documentation for reference.

Testing the solution

Once we have fixed the HTTPS binding on the AD FS server, let’s run again the WAP trust process using the command below:

$FScredential = Get-Credential
Install-WebApplicationProxy -FederationServiceName "fs.contoso.com" -FederationServiceTrustCredential $FScredential -CertificateThumbprint "TLS CERT THUMBPRINT"

Reference: Install-WebApplicationProxy (WebApplicationProxy) | Microsoft Docs

And we get a successful WAP trust having event ID 245 on WAP AD FS/Admin logs:

The federation server proxy successfully retrieved and updated its configuration from the Federation Service ‘fs.contoso.com’.

Summary

In this article, we covered how to troubleshoot error message ‘No client certificate associated with the request was found.’ during Web Application Proxy trust setup.

I hope you have enjoyed reading this article, and it helps you to manage your AD FS environment.

Enjoyed the article? Like and share. 🙂

Note: I do not represent the organization I work for, all the opinions expressed here, are my own. This post is provided AS IS with no warranties or guarantees and confers no rights.

In case you have any suggestions or feedback, please leave a comment.

[ ]’s

Ulysses Neves

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Microsoft Authenticator Will Block Jailbroken Devices in 2026 — What You Need to Know 17 de March de 2026
  • Enhancing Azure role activation security with FIDO2/Passkeys 23 de September de 2024
  • Microsoft Entra ID CAP | Enforcing WHfB using Authentication Strength 21 de April de 2024
  • Troubleshooting Error Code ‘0x000005e’ in WHfB: PIN Authentication Woes 11 de February de 2024
  • WHfB: Fixing Windows Hello for Business error ‘LogoncertTemplateReady: NO (StateNoTemplate)’ 29 de December de 2023

Archives

  • March 2026
  • September 2024
  • April 2024
  • February 2024
  • December 2023
  • September 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019

Tags

#aaddownleveldevice #aadhybridjoin #adfs #adfsonsql #azuread #azureauth #azureCA #azuredevice #azurehybridjoin #azuremfa #azuresecurity #capolicy #cloudkerberostrust #conditionalaccess #conditionalaccesspolicy #deviceregistration #gmsaaccount #gopasswordless #hybridaadjoin #mfaserver #msadfs #msazure #msidentity #namedlocation #sslcertificatevalidation #tshootadfs #tshoothybridjoin #tshootwaptrust #waptrust #WHFBcerttrust #whfbdeployment #WHfBhybridsetup #widdatabase adconnect authenticationcontext authenticationstrength az500 azuread azuremfa azurepim azuresecurity cloudsecurity microsoft365 msazure WHfB
©2026 Ulysses Neves | Design: Newspaperly WordPress Theme
Ulysses Neves
Gerenciar Consentimento de Cookies
Para fornecer as melhores experiências, usamos tecnologias como cookies para armazenar e/ou acessar informações do dispositivo. O consentimento para essas tecnologias nos permitirá processar dados como comportamento de navegação ou IDs exclusivos neste site. Não consentir ou retirar o consentimento pode afetar negativamente certos recursos e funções.
Funcional Always active
O armazenamento ou acesso técnico é estritamente necessário para a finalidade legítima de permitir a utilização de um serviço específico explicitamente solicitado pelo assinante ou utilizador, ou com a finalidade exclusiva de efetuar a transmissão de uma comunicação através de uma rede de comunicações eletrónicas.
Preferências
O armazenamento ou acesso técnico é necessário para o propósito legítimo de armazenar preferências que não são solicitadas pelo assinante ou usuário.
Estatísticas
O armazenamento ou acesso técnico que é usado exclusivamente para fins estatísticos. O armazenamento técnico ou acesso que é usado exclusivamente para fins estatísticos anônimos. Sem uma intimação, conformidade voluntária por parte de seu provedor de serviços de Internet ou registros adicionais de terceiros, as informações armazenadas ou recuperadas apenas para esse fim geralmente não podem ser usadas para identificá-lo.
Marketing
O armazenamento ou acesso técnico é necessário para criar perfis de usuário para enviar publicidade ou para rastrear o usuário em um site ou em vários sites para fins de marketing semelhantes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
Ver preferências
  • {title}
  • {title}
  • {title}