Software⏱️ 4 min read📅 2026-06-03

How to Fix: How to solve "Could not establish trust relationship for the SSL/TLS secure channel with authority"

WCF service hosted in IIS 7 with self-signed certificate, works in IE but not in client console.

Quick Answer: Try adding the self-signed certificate to the client's trusted root certification authorities.

The 'Could not establish trust relationship for the SSL/TLS secure channel with authority' error occurs when the client cannot verify the identity of the server hosting the WCF service, which is typically due to a mismatch between the client's and server's trust stores. This issue affects users who are connecting to the WCF service using client consoles.

This error can be frustrating as it prevents users from accessing the WCF service, but fortunately, there are several methods to resolve this issue.

🛑 Root Causes of the Error

  • The primary reason for this error is that the client's trust store does not contain the server's certificate, which is typically self-signed. When a self-signed certificate is used, it needs to be added to the client's or server's trust store in order to establish a secure connection.
  • Another possible cause could be if the server's certificate has expired or been revoked.

🔧 Proven Troubleshooting Steps

Adding the Server Certificate to the Client's Trust Store

  1. Step 1: Open the Windows Registry Editor (regedit.exe) and navigate to the following key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\Schannel\Certificates\LocalMachine\TrustedRootCertificateList. If the certificate is not already present, add it by clicking 'Edit Binary' and then importing the server's certificate into this registry key.
  2. Step 2: Alternatively, you can use the Windows Management Instrumentation (WMI) to import the certificate: run the command `wmic cert:GetCertTrustLists` to retrieve a list of trusted certificates, and then select the server's certificate from this list to add it to the client's trust store.
  3. Step 3: If the certificate is not present in the registry or WMI, you can also use the Windows Certificate Store to import it manually: navigate to the 'Manage Certificates' section in the Control Panel, click on 'Import' and then select the server's certificate file (.pfx) to add it to the client's trust store.

Using a Third-Party Tool to Import the Certificate

  1. Step 1: Utilize a third-party tool such as OpenSSL or Microsoft's own Certutil to import the server's certificate into the client's trust store. These tools can automate the process of importing the certificate and adding it to the client's trust store.
  2. Step 2: Alternatively, you can also use a tool like PuTTYgen to generate a private key for the server's certificate and then import it into the client's trust store using Certutil.

💡 Conclusion

By following these steps, users should be able to resolve the 'Could not establish trust relationship for the SSL/TLS secure channel with authority' error and access their WCF service. Remember to always verify the identity of servers hosting your services by adding their certificates to your client's or server's trust stores.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions