1. Home
  2. Knowledge Base
  3. Troubleshooting & Fix
  4. (FIX) The Connection Has Been Terminated Because An Unexpected Server Authentication Certificate Was Received From The Remote Computer

(FIX) The Connection Has Been Terminated Because An Unexpected Server Authentication Certificate Was Received From The Remote Computer

If you’re trying to connect Remote Desktop Protocol (RDP) using Windows 10/8/7 system, you might be caught up with the following error,

The connection has been terminated because an unexpected server authentication certificate was received from the remote computer.

Try connecting again. If the problem continues, contact the owner of the remote computer or your network administrator.

There are three primary reasons behind this issue,

  • The server certificate required is either missing or outdated.
  • Remote Desktop Client Certificate Revocation List (CRL) validation is not working.
  • Remote Desktop is broken on your Windows 10 client machine.

Let us get started with the fix,


Renew the RDP Self-Signed Certificate

An expired self-signed certificate is one of the primary reasons to face such issues. This fix will demonstrate how you can renew the RDP Self-Signed Certificate.

Login to Windows Server → Start → Search and open “Manage computer certificate“.

navigate to manage computer certificates

Navigate to \LocalMachine\Remote Desktop\ you can see the Self-Signed SSL Certificate expired or not.

check self signed certificate expiry date

If the Self-Signed certificate is expired, you can restart the Remote Desktop Configuration service, creating a new certificate. First, search and open CMD (Command Prompt) and run the following commands,

net stop SessionEnv
net start SessionEnv
net stop SessionEnv

Using Registry

1. Login to Windows → Start → Search and open “regedit

search for regedit

OR

Login to Windows, open Run using Windows + R → Type, and run Regedit.

2. Once you open the “Registry Editor“, Navigate to HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client Doubleclick on RDGClientTransport.

navigate to terminal server client

3. Enter the value data = 1 Click on OK.

value data 1 registry

Replacing mstsc.exe & mstscax.dll Files

Microsoft comes with the default mstsc.exe, a Remote Desktop application that we use while connecting to any RDP. Sometimes replacing mstsc.exe and mstscax.dll files might resolve the reported problem for Windows 10 (Version 1607). You can find the mstsc.exe and mstscax.dll files at following location,

C:\Windows\system32

Note: You must replace the Windows version files before Version 1607.

mstsc exe file location

Microsoft has already introduced the patch for this problem. If you keep windows operating up-to-date, you shouldn’t face this problem.

Conclusion

This is reported error by one of our customer and the above proposed resolution should solve the “The Connection Has Been Terminated Because An Unexpected Server Authentication Certificate Was Received From The Remote Computer” issue.

Hyonix was founded in early 2018, as we believed the current pricing of Windows VPS was far too overpriced for most consumers. This makes it nonuser and budget-friendly for many people around the world. Our main goal is to change that – providing powerful licensed Windows VPS at a reasonable price so that everyone can grab one without thinking twice about the performance/price that you will get. Get yourself fully optimized Windows VPS starting @ $6.5/mo from Hyonix.com.

Updated on December 22, 2021

Was this article helpful?

Need Support?
Can't find the answer you're looking for? Don't worry we're here to help!
CONTACT SUPPORT