RDS infrastructure – The connection has been terminated because an unexpected server authentication certificate was received from the remote computer.

The connection has been terminated because an unexpected server authentication certificate was received from the remote computer. In my case the error was connected after adding HA for Connection Broker and adding new DNS name for the RD Connection Broker cluster, that was not included in certificate. You can always change it using Power Shell command as a admin:

Set-RDClientAccessName -ConnectionBroker connectionbroker-server-name  -ClientAccessName New-DNS-Name-For-The-RD-Connection-Broker-Cluster

Please remember that DNS must be configured for New-DNS-Name-For-The-RD-Connection-Broker-Cluster