On the newest PI OS bullseye (not beta!) I installed the xrdp and added user xrdp to the ssl-cert group. When I open the RDP session on w10 PC and try to log to PI4 I get an error saying:
connecting to sesman ip 127.0.0.1 port 3350
sesman connect ok sending
login info to session manager, please wait...
login succesful for display 11
started connecting connection problem, giving up
some problem
When I checked the status of the xrdp service it shows that the service is started and running, but it shows some errors:
Feb 06 12:36:10 pi4-8 xrdp[191346]: [INFO ] Socket 12: AF_INET6 connection received from ::ffff:82.208.181.53 port 52965
Feb 06 12:36:10 pi4-8 xrdp[394313]: [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
Feb 06 12:36:10 pi4-8 xrdp[394313]: [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
Feb 06 12:36:10 pi4-8 xrdp[394313]: [ERROR] SSL_accept: I/O error
Feb 06 12:36:10 pi4-8 xrdp[394313]: [ERROR] trans_set_tls_mode: ssl_tls_accept failed
Feb 06 12:36:10 pi4-8 xrdp[394313]: [ERROR] xrdp_sec_incoming: trans_set_tls_mode failed
Feb 06 12:36:10 pi4-8 xrdp[394313]: [ERROR] xrdp_rdp_incoming: xrdp_sec_incoming failed
Feb 06 12:36:10 pi4-8 xrdp[394313]: [ERROR] xrdp_process_main_loop: libxrdp_process_incoming failed
Feb 06 12:36:10 pi4-8 xrdp[394313]: [ERROR] xrdp_iso_send: trans_write_copy_s failed
Feb 06 12:36:10 pi4-8 xrdp[394313]: [ERROR] Sending [ITU T.125] DisconnectProviderUltimatum failed
There seems to be an issue with encryption (?) so I checked out the certificates and their privileges (through symlinks too) but they seem to be ok. Due to my lack of knowledge, I am not able to troubleshoot any deeper than that.
BTW: a few weeks ago I tried the same thing on 32-bit bullseye installation with same result , but I haven't followed up because I decided to wait for the ARM64 release
sudo apt remove xrdp
thensudo apt autoremove
followed bysudo apt install xrdp
worked for me. Then I reversed the above recommendation (back to default) and it still works for me now. – DeepSpace101 Aug 22 '22 at 18:28