https://c-nergy.be/blog/?p=13708
Hello World,
We are again back and ready to discuss a really minor issue/annoyance that some people have noticed when performing there remote connection using xRDP software. For some weeks now (see our previous posts), a lot of work has been done to analyse how Ubuntu 19.04 would affect the xRDP installation process and we have included our findings in the latest version of our scripts. The changes are not major but still needed to be tackle to offer an easy way to perform xRDP installation and provide the best user experience.
If you are interested in our findings, you can have a look at the following posts
The post of today will explain why xRDP logs an SSL error in its log and how this can be solved. Please not that this error is not preventing the connection and you could simply ignore the steps described in this post. However, if you are a picky user and want to get rid of this error message, you can proceed….
So, let’s go !
As mentioned earlier, if you have used the manual installation approach or if you have used one of our scripts (Std installation vs Custom installation), you should be able to perform your remote connection and access your beautiful Ubuntu Desktop interface. No popups should be displayed and you should be able to start working almost immediately. However, some advanced users/sysadmins have noticed that an error is thrown in the /var/log/xrdp.log file. The screenshot below shows the error that will be generated each time a user perform a remote connection (if you have not perform any additional actions)
Click on picture for better resolution
So, to understand why this error is generated, we need to have a look at the permissions on this specific file. If you open nautilus and your browse to the following location
/etc/xrdp
You will see that the folder contains indeed *the .pem files (cert.pem and key.pem)
Click on picture for better resolution
Looking at the permissions for the the file /etc/xrdp/cert.pem, any user can have a read access on it. This is inline with what the /var/log/xrdp.log is telling us. xRDP can read the cert.pem file but gets an access denied on /etc/xrdp/key.pem
Click on picture for better resolution
So, looking at the permissions on the file /etc/xrdp/key.pem, we can see that again, in theory, everybody should have a read access to it