Configuring a Group Policy (GPO) for Remote Desktop (RDP) Certificates

After configuring a certificate template for the distribution of Remote Desktop certificates (see the article "Configuring a Certificate Template for Remote Desktop (RDP) Certificates"), a group policy is still required that instructs the participating computers to also use the certificates originating from the template.

First, a new Group Policy Object (GPO) is created and edited via the Group Policy Management Console (gpmc.msc).

Navigate to "Computer Configuration" - "Windows Components" - "Remote Desktop Services" - "Remote Desktop Session Host" - "Security". There you select the option "Server authentication certificate template" and edit it.

Set the setting to "Enabled" and specify the object name (the name without spaces) of the certificate template.

The group policy can now be distributed to the participating machines.

Client side behavior

To better understand the client-side behavior, it helps to have a look at the description within the configuration dialog:

If no certificate can be found that was created with the specified certificate template, the RD Session Host server will issue a certificate enrollment request and will use the current certificate until the request is completed. If more than one certificate is found that was created with the specified certificate template, the certificate that will expire latest and that matches the current name of the RD Session Host server will be selected.

This means that the client will behave as follows:

Thus, the configuration will work even if the certificate template for Remote Desktop certificates has not been configured for autoenrollment. However, due to better management, it is recommended to use Autoenrollment.

For example, vulnerability scanners such as Qualys will report a finding if remote desktop certificates are not renewed until two days before expiration.

Next steps

How to verify that the clients are actually using the Remote Desktop certificates is described in the article "Identify the active Remote Desktop (RDP) certificate" described.

Related links:

External sources

en_USEnglish