Problem
I have setup an RDS environment with a connection broker and RDGateway on one server, and then two RDSH servers. When configuring a domain crossover issue (our external URL is a different domain than our internal) I kept getting the following error-
"The identity of the remote computer cannot be verified. Do you want to connect anyways?
This Problem can occur if the remote computer is running a version of Windows that is earlier than windows Vista, or if the remote computer is not configured to support server authentication
For assistance, contact your network administrator or the owner of the remote computer"
Now PLEASE, PLEASE, PLEASE READ THAT WHOLE ERROR and checkout the attached image![]()
I know the first line is the same that you see with cert/domain mismatches, or with untrusted certificates, but this is not the generic certificate error. This error persists if I just remote directly to one of the RDSH, though not the other,
it is a settings issue on the RDSH server.
After I isolated it to the RDSH I reverted it to an earlier snapshot and not only did this error no longer appear, but connection times through the RD Web Access portal were maybe 15 seconds quicker. Everything ran beautifully, certs configured so that there
wasn't a single error internally or externally for multiple devices and different users... and then I restart the RDSH server and BAM its back again, both the error and the long login times.
Background Details
At first I thought this was caused by a Group Policy object that I deployed when I shouldn't have-
Computer>Policies>Administrative Templates>Windows Components > Remote Desktop Services > Remote Desktop Session Host > Security > Server Authentication Certificate Template
I deleted the GPO link and reverted to my snapshot as stated above. Since this seemed to resolve the issue I thought it was solved but as I stated the issue crops back up after a restart. The GPO is definitely gone though so it must be an issue somewhere
else.
An oddity is that even though the issue is definitely just with just one of the session hosts the error and delayed connection time occurs whenever I connect through the connection broker until I revert the problem server. After reverting just that
single server the problem goes away for all of the servers.
Cert Setup Details
This is not directly the cause of the problem, as I stated there are no certificate errors after I finished configuring our cert setup, but our setup is a bit non-standard so I'll describe it below.
RD Connection Broker/RDGateway/RD Webaccess server is signed with a wildcard cert . This does not match our internal domain, so I made a DNS entry that does which the connection broker bounces to and then to the internal IP address of the connection broker
server.
Website - remote.domain.com signed with *.domain.com -
internal dns record pointing connectionbroker.domain.com to ip address of connection broker server.
The RDS environment is signed with *.domain.com certificates
The published FQDN is changed with the PS script found here to match the external domain -
https://gallery.technet.microsoft.com/Change-published-FQDN-for-2a029b80
to the "connectionbroker.domain.com" address.
---
Update: After testing this a bit more I realized it is not actually the restarting that triggers the problem, it seems to be activating windows following which I was restarting. Restarting without activating Server 2012 R2 Standard Edition does not cause
this error to appear.