RDS Connection Issue

Josh Adcock 0 Reputation points
2024-06-19T16:08:15.4833333+00:00

I am setting up a new Windows Server 2022 Standard with two virtual machines, one as a database server, the other as an RDGateway / Terminal server. However, every time I try to connect to the RDGateway from an outside machine, I get the error message: "Your Computer Cannot Connect to the Remote Computer Because the Remote Desktop Gateway Server Address Requested and the Certificate Subject Name Do Not Match". I have followed several recommendations, such as binding the SSL certificate to the RDGateway, creating a self-signed SSL certificate, and verifying that the SSL certificate being handed out via IIS is the correct one, but still get the SSL mismatch. What am I missing? Any assistance would be appreciated.

Windows for business | Windows Client for IT Pros | User experience | Remote desktop services and terminal services
Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-06-20T02:38:38.66+00:00

    Hello Josh Adcock,

    Identify Remote Desktop Gateway server address and DNS name(s) the certificate secures: Click View Certificate -> Details -> Subject Alternative Name

    Does certificate list DNS name that secures Remote Desktop Gateway server address?

    User's image

    Possible Solutions:

    When incorrect RD Gateway server address was entered in RDP client:

    Update RDP client connection to use server name that is secured by certificate, RDP client -> Advanced Tab -> click Settings under Connect from anywhere -> Use these RD Gateway server settings

    User's image

    Installed RD Gateway certificate does not secure RD Gateway server address:

    Update RD Gateway certificate to use desired

    RD Gateway Manager snap-in -> SSL Certificate tab -> Import a certificate into Personal Store -> Browse and Import Certificate

    Note: If certificate does not show in list you must first import certificate .PFX into local computer

    store.

    User's image

    Note: Also see domain - Name Mismatch - Incorrect Remote Computer Name - Server Fault because certificate must secure Remote Computer and RD Gateway

    Additional resources:


    If the Answer is helpful, please click "Accept Answer" and upvote it.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.