Skip to content

Unable to make xRDP connection using TLS certificate #2297

@greped

Description

@greped

I'm a novice to much of this, so I decided to use this github guide suggested to me by a nice person on this subreddit: https://github.com/neutrinolabs/xrdp/wiki/TLS-security-layer

I followed the github instructions as described, but I'm now no longer able to xRDP in with or without an SSH tunnel.

To provide some perspective, I'm using an Ubuntu 20.04.4 client to access a Debian 11 remote server. Both machines are updated and placed on the same VLAN.

Here were the exact steps I took in my Debian server as root:

  1. Security changes made to xrdp.ini and xRDP was restarted

tls_cipher=high

security_layer=tls

The system was restarted, there were no issues yet

  1. Generate a private key and self-signed certificate

$ openssl req -x509 -newkey rsa:2048 -nodes -keyout key.pem -out cert.pem -days 3650

  1. Move key.pem (private key) and cert.pem (self-signed certificate) to /etc/xrdp/

  2. The path to the key.pem and cert.pem was specified in xrdp.ini (global)

certificate=/etc/xrdp/cert.pem

key_file=/etc/xrdp/key.pem

  1. Users were added to ssl-cert group

  2. xRDP service was restarted, server was restarted

  3. Was not able to log into xRDP, but SSH worked just fine

For reference, here is my xrdp.ini file: https://pastebin.com/Su2igSwn

Here were the outputs I received when I switched security_layer from rdp to tls: https://imgur.com/a/cgRqL7D

I was able to temporarily fix the issue by going into xrdp.ini (global) and changing security_layer from tls to rdp. When I did that, xRDP worked again.

Any suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions