How to Fix RDP Error: Because of a security error on RDP

Estimated reading: 3 minutes 339 views

Users RDP may sometimes encounter the following error: ‘Because of a security error, the client could not connect to the remote computer…’

In this article, we will show you some ways to fix this error.

Solution 1. Disable the firewall rules.

The main function of the Windows Defender Firewall is to manage incoming and outgoing connection requests. In some cases, it may block RDP connection requests. Therefore, we need to disable it to fix the problem.

Step 1. Press Win + R and then type in “control panel” and hit OK to open Control Panel.

Step 2. Navigate here: Control Panel > System and Security > Windows Defender Firewall.

Step 3. Click Turn Windows Defender Firewall on or off in the left sidebar.

Step 4. Select Turn off Windows Defender Firewall under the Private network settings, and select Turn off Windows Defender Firewall under the Public network settings.

Step 5. Then go back to the Windows Defender Firewall page, find and click Advanced settings.

Step 6. Click Inbound Rules, right-click the items related to Remote Desktop and select Disable Rule in the expanded menu. After this, try the remote connection again.

Solution 2. Delete Registry values.

This “Because of a security error on RDP” issue may occur if a certificate on the Remote Desktop server is corrupted. To solve the problem, you can delete the corrupted or misplaced certificate.

Step 1. Invoke the Run dialog box and then type in “regedit” and hit OK to open Registry Editor.

Step 2. Navigate here:

Computer > HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Control > Terminal Server > RCM

Step 3. Click File and then Export to export the Registry File, type exported-Certificate in the File name box, and then click Save.

Step 4. On the right pane of the RCM, right-click each of the following values, click Delete, and then click Yes to verify the deletion:

  • Certificate
  • X509 Certificate
  • X509 Certificate ID
  • X509 Certificate2

Step 5. Quit Registry Editor, and then restart the Remote Desktop.

Solution 3. Configure authentication and encryption.

You can also try to resolve the issue by configuring authentication and encryption.

Step 1. Invoke the Run dialog box and then type in “gpedit.msc” and press OK to open the Local Group Policy Editor window.

Step 2. Navigate here:

Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Security

Step 3. Find and click Set client connection encryption levelRequire use of a specific security layer for remote connections and Require user authentication for the remote connection by using Network Level Authentication. Change their status to Enabled respectively.

Then restart your Windows server and try again.

Conclusion

In our case after performing the above steps, we did not see the error again.

Hopefully, this article will be helpful for you. Good luck!