If the RD gateway uses a self-signed certificate, then the certificate has to be installed as a trusted root CA certificate on the client machine.
Otherwise, you will get the error below when you attempt to make connnection