Remote Desktop SSL
This guide explains how to request an RDP TLS certificate via Active Directory Certificate Services (AD CS), ensure it is installed correctly, and bind it to Remote Desktop.
Prerequisites
Section titled “Prerequisites”- The Windows server can enroll/request certificates from AD CS (permissions and network reachability).
- A certificate template exists that includes Server Authentication EKU and supports the required SANs.
- RDP enabled on the server.
1) Request the certificate (Windows GUI)
Section titled “1) Request the certificate (Windows GUI)”Request the certificate on the target server so the private key is generated and stored locally:
- Run
certlm.msc(Certificates — Local Computer). - Personal → Certificates → All Tasks → Request New Certificate…
- Choose the appropriate template for an RDP/server TLS certificate.
- Ensure the certificate includes the correct DNS names (SANs) for the host you expect users to connect to (example:
rds.core.lef,desktop.core.lef).
2) Verify the cert has a private key
Section titled “2) Verify the cert has a private key”In certlm.msc under Personal → Certificates, open the issued certificate and confirm it shows:
- “You have a private key that corresponds to this certificate”
- Enhanced Key Usage includes “Server Authentication”
3) Bind the certificate to RDP
Section titled “3) Bind the certificate to RDP”- Run
regedit - Navigate to:
HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server\\WinStations\\RDP-Tcp - Set
SSLCertificateSHA1Hash(REG_BINARY) to the cert thumbprint (no spaces). - Restart the RDP service:
Restart-Service TermService -Force4) Validate
Section titled “4) Validate”- Connect via RDP from another machine.
- Confirm the presented certificate CN is
rds.core.lefand chains to the internal CA.
Operational notes
Section titled “Operational notes”- When the certificate is renewed/reissued, the thumbprint changes; update the RDP binding if needed.
- Protect exported private keys and PFX files; store/transfer them only via approved secure channels.