A month or two back, I posted a question regarding connecting to RDP from behind a proxy server. The error stack had indicated a timeout issue, which led me to believe that the proxy server was preventing contact. Beyond the import of the API, the sum total of the RDP API calls in my script was a single line:
default_session = rdp.open_platform_session(app_id,rdp.GrantPassword(username = RDP_LOGIN,password = RDP_PASSWORD))
(The script succeeds in making the connection on my laptop, but not on my production server, which is behind a proxy server.)
Following up with the network group, we discovered that the proxy server was allowing the contact, but immediately closed the connection, due to a fatal protocol mismatch (see attached screen shot of proxy server network traffic: contact is line 9, with the protocol mismatch error immediately after).
In the course of trying to investigate that issue, I upgraded my RDP version, and my Python version. This had the impact of improving the error message to something far less misleading:
17:15:30
\TSRR>C:\Users\U8009777\AppData\Local\Programs\Python\Python39\python Test.py
Python version: 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)]
SSL version: OpenSSL 1.1.1g 21 Apr 2020
RDP version: 1.0.0a7
2020-11-13 17:17:57,716 - Session session.platform - Thread 5972 | MainThread
[Error -1 - ConnectError] b'[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1122)'
This is the point I'm currently stuck at. I have no idea what security protocol the RDP (AWS) server is expecting. Once I do find out, I have no idea how to modify either (a) the RDP API settings, (b) my Python session settings, and/or (c) my client's security setup, to accomodate RDP in successfully connecting.
Any guidance would be appreciated.