[GH-ISSUE #3585] RDP error while connectiong to Windows Server <2022 #2460

Closed
opened 2026-02-27 00:07:27 +03:00 by kerem · 12 comments
Owner

Originally created by @mbzik on GitHub (Sep 4, 2024).
Original GitHub issue: https://github.com/electerm/electerm/issues/3585

Electerm Version and download file extension(Electerm版本和下载文件后缀)

electerm-1.39.119-win-x64-installer.exe

Platform detail (平台详情)

Microsoft Windows NT 10.0.19045.0 x64

What steps will reproduce the bug?(重新问题的详细步骤)

Trying to connect via RDP to Windows Server 2008 - 2019. (lower than 2022)
image
After connectiong i get grey screen and message in logs.

While trying to investigate, realized that the node-rdpjs library can cause SSL issues. But I have not been able to figure out why this error occurs. Maybe there is a way to skip certificate validation when connecting?

What should have happened?(期望的结果)

Establishing the connection

Would this happen in other terminal app(是否能够在其他同类软件重现这个问题)

No response

Additional information(其他任何相关信息)

No response

Originally created by @mbzik on GitHub (Sep 4, 2024). Original GitHub issue: https://github.com/electerm/electerm/issues/3585 ### Electerm Version and download file extension(Electerm版本和下载文件后缀) electerm-1.39.119-win-x64-installer.exe ### Platform detail (平台详情) Microsoft Windows NT 10.0.19045.0 x64 ### What steps will reproduce the bug?(重新问题的详细步骤) Trying to connect via RDP to Windows Server 2008 - 2019. (lower than 2022) ![image](https://github.com/user-attachments/assets/75c28301-5cdb-44e9-8db5-17842b1cbcf9) After connectiong i get grey screen and message in logs. While trying to investigate, realized that the node-rdpjs library can cause SSL issues. But I have not been able to figure out why this error occurs. Maybe there is a way to skip certificate validation when connecting? ### What should have happened?(期望的结果) Establishing the connection ### Would this happen in other terminal app(是否能够在其他同类软件重现这个问题) _No response_ ### Additional information(其他任何相关信息) _No response_
kerem closed this issue 2026-02-27 00:07:28 +03:00
Author
Owner

@zxdong262 commented on GitHub (Sep 5, 2024):

https://github.com/electerm/electerm/wiki/RDP-limitation

<!-- gh-comment-id:2330404827 --> @zxdong262 commented on GitHub (Sep 5, 2024): https://github.com/electerm/electerm/wiki/RDP-limitation
Author
Owner

@mbzik commented on GitHub (Sep 5, 2024):

https://github.com/electerm/electerm/wiki/RDP-limitation

Yes, this fixes the Windows Server 2022 connection error, but with older versions of Windows Server (tested with Windows Server 2016, 2019) the connection does not work.

<!-- gh-comment-id:2332586280 --> @mbzik commented on GitHub (Sep 5, 2024): > https://github.com/electerm/electerm/wiki/RDP-limitation Yes, this fixes the Windows Server 2022 connection error, but with older versions of Windows Server (tested with Windows Server 2016, 2019) the connection does not work.
Author
Owner

@zxdong262 commented on GitHub (Sep 5, 2024):

https://github.com/electerm/electerm/wiki/RDP-limitation

Yes, this fixes the Windows Server 2022 connection error, but with older versions of Windows Server (tested with Windows Server 2016, 2019) the connection does not work.

Seems limited by the rdpjs lib, currently no other rdp lib to use

<!-- gh-comment-id:2332821996 --> @zxdong262 commented on GitHub (Sep 5, 2024): > > https://github.com/electerm/electerm/wiki/RDP-limitation > > Yes, this fixes the Windows Server 2022 connection error, but with older versions of Windows Server (tested with Windows Server 2016, 2019) the connection does not work. Seems limited by the rdpjs lib, currently no other rdp lib to use
Author
Owner

@mbzik commented on GitHub (Sep 6, 2024):

https://github.com/electerm/electerm/wiki/RDP-limitation

Yes, this fixes the Windows Server 2022 connection error, but with older versions of Windows Server (tested with Windows Server 2016, 2019) the connection does not work.

Seems limited by the rdpjs lib, currently no other rdp lib to use

Is there way to try this one - node-freerdp2 - https://www.npmjs.com/package/node-freerdp2?
It's have an option certIgnore: true

<!-- gh-comment-id:2334510155 --> @mbzik commented on GitHub (Sep 6, 2024): > > > https://github.com/electerm/electerm/wiki/RDP-limitation > > > > > > Yes, this fixes the Windows Server 2022 connection error, but with older versions of Windows Server (tested with Windows Server 2016, 2019) the connection does not work. > > Seems limited by the rdpjs lib, currently no other rdp lib to use Is there way to try this one - node-freerdp2 - https://www.npmjs.com/package/node-freerdp2? It's have an option `certIgnore: true`
Author
Owner

@mbzik commented on GitHub (Sep 17, 2024):

Is there an option to switch to this library? I was able to replace the backend part, but was unable to load the screen on the frontend.

<!-- gh-comment-id:2355478995 --> @mbzik commented on GitHub (Sep 17, 2024): Is there an option to switch to this library? I was able to replace the backend part, but was unable to load the screen on the frontend.
Author
Owner

@zxdong262 commented on GitHub (Sep 17, 2024):

Is there an option to switch to this library? I was able to replace the backend part, but was unable to load the screen on the frontend.

Should be able to fix in next release github.com/electerm/electerm@648afaf27a

Let's see how it goes

<!-- gh-comment-id:2356261398 --> @zxdong262 commented on GitHub (Sep 17, 2024): > Is there an option to switch to this library? I was able to replace the backend part, but was unable to load the screen on the frontend. Should be able to fix in next release https://github.com/electerm/electerm/commit/648afaf27a1b5f5af5ed875c3c5ad6ebb8744154 Let's see how it goes
Author
Owner

@mbzik commented on GitHub (Sep 22, 2024):

Is it on 1.40.6 update?
In logs i got an error:
rdp error Error: 2238464:error:1000012e:SSL routines:OPENSSL_internal:KEY_USAGE_BIT_INCORRECT:....\third_party\boringssl\src\ssl\ssl_cert.cc:605:

Is it any certIgnore analogs in new library?

<!-- gh-comment-id:2365368641 --> @mbzik commented on GitHub (Sep 22, 2024): Is it on 1.40.6 update? In logs i got an error: rdp error Error: 2238464:error:1000012e:SSL routines:OPENSSL_internal:KEY_USAGE_BIT_INCORRECT:..\..\third_party\boringssl\src\ssl\ssl_cert.cc:605: Is it any certIgnore analogs in new library?
Author
Owner

@zxdong262 commented on GitHub (Sep 22, 2024):

Is it on 1.40.6 update? In logs i got an error: rdp error Error: 2238464:error:1000012e:SSL routines:OPENSSL_internal:KEY_USAGE_BIT_INCORRECT:....\third_party\boringssl\src\ssl\ssl_cert.cc:605:

Is it any certIgnore analogs in new library?

As I tested, works in win11, got another user report not working in win10, I do not know reason yet

<!-- gh-comment-id:2365410941 --> @zxdong262 commented on GitHub (Sep 22, 2024): > Is it on 1.40.6 update? In logs i got an error: rdp error Error: 2238464:error:1000012e:SSL routines:OPENSSL_internal:KEY_USAGE_BIT_INCORRECT:....\third_party\boringssl\src\ssl\ssl_cert.cc:605: > > Is it any certIgnore analogs in new library? As I tested, works in win11, got another user report not working in win10, I do not know reason yet
Author
Owner

@paja6 commented on GitHub (Sep 23, 2024):

I can see the same error when connecting from Windows 11 to Windows Server 2016 and 2019. I have not tested other Windows Server versions. I tested it with both NLA disabled and enabled.

<!-- gh-comment-id:2367233405 --> @paja6 commented on GitHub (Sep 23, 2024): I can see the same error when connecting from Windows 11 to Windows Server 2016 and 2019. I have not tested other Windows Server versions. I tested it with both NLA disabled and enabled.
Author
Owner

@zxdong262 commented on GitHub (Sep 23, 2024):

Got someone told me that it is related to additional key
1remote

<!-- gh-comment-id:2367265180 --> @zxdong262 commented on GitHub (Sep 23, 2024): Got someone told me that it is related to additional key ![1remote](https://github.com/user-attachments/assets/23f7714c-c239-41b1-9670-d306e1bebd82)
Author
Owner

@paja6 commented on GitHub (Sep 23, 2024):

Is the screenshot from the Credentials Manager in Windows? If yes, I do not see such a record on the client or the server.

<!-- gh-comment-id:2368053651 --> @paja6 commented on GitHub (Sep 23, 2024): Is the screenshot from the Credentials Manager in Windows? If yes, I do not see such a record on the client or the server.
Author
Owner

@zxdong262 commented on GitHub (Jan 18, 2025):

-> https://github.com/electerm/electerm/issues/3764

<!-- gh-comment-id:2599525174 --> @zxdong262 commented on GitHub (Jan 18, 2025): -> https://github.com/electerm/electerm/issues/3764
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#2460
No description provided.