Add an RDP Server With Certificate Auth
Last modified on November 8, 2023
This feature is currently in closed-access beta. Functionality and documentation may change. Contact StrongDM for more information.
Overview
A Remote Desktop Protocol (RDP) server in StrongDM is used to control a Microsoft Windows resource, such as a server running Windows Server 2019 or Windows 10 Professional. This guide describes how to set up an RDP server with a certificate in the Admin UI.
Using certificate authentication eliminates the need to manage unique key pairs for each of your servers. By using a certificate authority managed by StrongDM, every connection is secured with a short-lived private/public key pair, thus eliminating the risk of lost keys being compromised.
Prerequisites
Before you begin, ensure that the server you are attempting to add is accessible from your StrongDM gateways or relays. You must have a properly functioning gateway or relay up and running, and it must be able to reach the target server before you can proceed.
To verify, go to the gateway or relay server and from a command prompt, type ping <YOUR_HOSTNAME>
. If your gateway or relay can connect to this hostname, you can continue.
For more information see nodes.
Review and Download StrongDM RDP Certificate
Every organization in StrongDM is automatically assigned a unique root Certificate Authority (CA). The root certificate needs to be added to your environment in order to allow RDP servers to authenticate with trusted certificates. To download the root certificate from the Admin UI, follow these steps.
- Log in to the StrongDM Admin UI
- Go to Settings > Credential Management.
- Under RDP Certificate Authority, click Download RDP root certificate to download the file
rdp.cer
. The certificate is added to your environment in the next step.

Add the StrongDM RDP CA to Your Host
Set up your host to trust certificates issued by your organization’s RDP CA. The following steps are for configuring RDP certificate authentication in Azure AD and on-premises AD. Follow the instructions for your host.
Azure AD setup
- Log in to the Azure portal.
- From Azure Services, select Microsoft Entra ID.
- Go to Security > Manage > Certificate authorities and upload the root certificate file you downloaded from StrongDM. Specify that it is a root CA certificate and click Add.
- Go to Security > Manage > Authentication methods > Policies to allow users from Azure to use smart cards to authenticate with this mechanism. Select Certificate-based authentication from the list of methods.
- On the Enable and Target tab, enable it. Then under Include and Exclude, set the appropriate user and/or group targets for your organization.
- On the Configure tab, under Authentication binding, set Protection Level to single-factor authentication.
- Still on the Configure tab, add a rule. On the Edit rule screen, select Certificate issuer. Make sure the certificate issuer identifier is correct and that the protection level is still set to single-factor authentication, and save.
- Review all the certificate-based authentication settings. The certificate fields may be left as the defaults. When done, acknowledge and save.
Azure AD configuration is now complete.
On-premises AD setup
The following steps describe how to set up RDP authentication using Remote Identities in an on-premises AD deployment.
Before you begin, ensure that the following requirements are met:
- Have an AD instance deployed, have an AD domain set up, and have a Windows server joined to the AD domain.
- Have an Active Directory Certificate Service (AD CS) set up. This ensures that AD CS generates additional domain controller certificates (which are not the same as the RDP root certificate downloaded from StrongDM).
AD CS setup
If AD CS is not already set up, follow these steps. If already done, skip to Upload Trusted Root Certificate to AD.
- First consult Microsoft documentation to install the certification authority.
- Check that the certificates are populated in the correct certificate stores. The names of these certificates are typically in the format
<DOMAIN_CONTROLLER_NAME>-auth
,<DOMAIN_CONTROLLER_NAME>-email
, and<DOMAIN_CONTROLLER_NAME>-kerberos
. Use the Group Policy Manager to see if these certificates are present. To view the domain controller certificates, use the shortcutWindows+R
and runmmc
. With MMC open, under File, select Add/Remove Snap-in > Certificates > Add > Computer Account. Then go to Local computer > Finish > Certificates (Local Computer) > Personal. - Ensure there is a root certificate in the format
<DOMAIN_NAME>-<DOMAIN_CONTROLLER_NAME>-CA
in the proper certificate stores. It should be present in all of the certificate stores viewable via the Microsoft Management Console (MMC) snap-in, specifically NTAuthCertificates, AIA Container, Certification Authorities Container, and Enrollment Services Container. In the same windows, under the CDP Container, you should also see a certificate revocation list (CRL) with the same name as this root certificate. See Verify CA Certificates Are Imported to learn how to view the certificate stores using MMC. - Check that the root domain controller certificate is present in the Trusted Root Certification Authorities tab under the group policy object settings. See Upload Trusted Root Certificate to AD to learn how to view it.
Upload trusted root certificate to AD
In this step, add your StrongDM root certificate as a trusted root certificate in AD. The trusted root certificate is different than the domain controller certificates.
- Log in as an administrator to the domain controller of your AD deployment.
- Go to Group Policy Management > Forest. Then select your domain name and go to Default Domain Policy.
- From Default Domain Policy, select the default domain group policy object. Optionally create a new one to select users that you want to be able to log in using Remote Identities.It is optional to create a new group policy object, onto which you can apply StrongDM-specific settings, such as Remote Identities. If you do create a new group policy object, be sure to apply the policy to the proper scope, including the organizational units or groups that include the users who will use Remote Identities to log in.
- Right-click on the group policy object. Then click through this path to import your RDP root certificate: Edit > Policies > Window Settings > Security Settings > Public Key Policies > Trusted Root Certificate Authority.
- From Trusted Root Certificate Authority, right-click Trusted Root Certificate Authority and select Import.
- Use the certificate import wizard to import the RDP root CA certificate file.
- Launch the command prompt as administrator, and upload the trusted root certificate AD domain:
certutil -dspublish -f ca.crt RootCA
- Publish the CA to the NTAuth store:
certutil -dspublish -f ca.crt NTAuthCA
- To force an update of the group policy and certificate stores, use the following commands on command prompt. Otherwise, it may take several hours for the policies to update.
certutil -pulse gpupdate.exe /force
Verify CA certificates are imported
- To verify that the certificate was uploaded correctly, launch the MMC tool using the shortcut
windows key+R
. Typemmc
, and then hitenter
. - Go to File > Add/Remove snap-in…. Add the Enterprise PKI snap-in and click OK.
- Right-click on the Enterprise PKI snap-in and select Manage AD Containers.
- In Manage AD Containers, click on the tabs to check that the root CA cert for RDP login now exists in the following three certificate stores: NTAuthCertificates, AIA Container, and Certification Authorities Container.
Enable smart card authentication
- Open the Group Policy Management Console.
- Double-click on the domain policy group policy object. You can use the default domain policy, or you can create your own to apply the correct StrongDM-specific settings, such as Remote Identities.It is optional to create a new domain policy, onto which you can apply StrongDM-specific settings, such as Remote Identities. If you do create a new one, be sure to apply the policy to the proper scope, including the organizational units or groups that include the users who will use Remote Identities to log in.
- Click Computer Configuration > Policies > Windows Settings > Security Settings > System Services.
- From System Services, click Smart Card > Define This Policy > Automatic.
Disable NLA
If Remote Identities will be used for this resource, Network Level Authentication (NLA) must be disabled on the RDP server.
- Open Control Panel and go to System and Security > Allow remote access > Remote.
- Ensure that the setting Allow remote connections to this computer is selected.
- Ensure that Allow connections only from remote computers running network level authentication (NLA) is not selected.
For more information about Remote Desktop settings and NLA, please see Microsoft documentation.
Add an RDP Certificate-Based Server in the Admin UI
To add a new RDP certificate-based server as a StrongDM resource, follow these steps.
- In the Admin UI, go to Infrastructure > Servers.
- Click Add server.
- Select RDP (Certificate Based) as the Server Type and set other resource properties to configure how the StrongDM relay connects to the server via RDP.

- Click Create to save the resource.
- Click the resource name to view status, diagnostic information, and setting details. After the server is created, the Admin UI displays that resource as unhealthy until the health checks run successfully. When the resource is ready, the Health icon indicates a positive, green status.
Resource properties
Configuration properties are visible when you add a Server Type or when you click to view the server’s settings. The following table describes the settings available for your RDP (Certificate Based) server.
Property | Requirement | Description |
---|---|---|
Display Name | Required | Meaningful name to display the resource throughout StrongDM; exclude special characters like quotes (") or angle brackets (< or >) |
Server Type | Required | Select RDP (Certificate Based) |
Hostname | Required | Hostname or IP address to which you are connecting, such as testserver-01.example.org ; relay server should be able to connect to your target server or hostname |
Port | Required | Port to connect to the resource; default port value 3389 |
Port Override | Optional | Automatically generated with a value between 1024 to 64999 as long as that port is not used by another resource; preferred port can be modified later under Settings > Port Overrides |
Secret Store | Optional | Credential store location; defaults to Strong Vault; to learn more, see Secret Store options |
Authentication | Required | Select Leased Credentials (default) or Remote Identities |
Username | Required | Displays if Authentication is set to Leased Credentials; enter the username the relay should utilize to connect to the server via RDP (for example, bob.belcher ) |
Username (path) | Required | Path to the secret in your Secret Store location (for example, path/to/credential?key=optionalKeyName where key argument is optional); required when using a non-StrongDM Secret Store type |
Healthcheck Username | Required | Displays if Authentication is set to Remote Identities; enter the username that will be utilized to verify StrongDM’s connection to the server; username must exist on the target server |
Resource Tags | Optional | Resource tags consisting of key-value pairs <KEY>=<VALUE> (for example, env=dev ) |
Secret Store options
By default, server credentials are stored in StrongDM. However, these credentials can also be saved in a secrets management tool.
Non-StrongDM options appear in the Secret Store dropdown if they are created under Network > Secret Stores. When you select another Secret Store type, its unique properties display. For more details, see Configure Secret Store Integrations.
CRL Troubleshooting
This section describes ways to resolve potential errors related to the StrongDM certificate revocation list (CRL).
Error - undetermined revocation status
“The revocation status of the smart card certificate used for authentication could not be determined.”
Solution
This error message may appear on the login screen when trying to log in, after you have completed all steps to configure the RDP server and the StrongDM resource.
Try the following command on both your domain controller and the Windows machine you are trying to connect to via RDP. This command attempts to ping the CRL that StrongDM hosts. Replace cert.cer
with the file path to the StrongDM trusted root CA certificate that you have downloaded on your machine.
certutil -verify -urlfetch cert.cer
Error - unable to check revocation
ERROR: Verifying leaf certificate revocation status returned The revocation function was unable to check revocation because the revocation server was offline. 0x80092013 (-2146885613 CRYPT_E_REVOCATION_OFFLINE)
Solution
If this error is returned in response to the command certutil -verify -urlfetch cert.cer
, your domain controller or the RDP server you are trying to connect to cannot access the StrongDM CRL due to your network’s firewall settings.
To fix the issue, allow the URL that the CRL is hosted at to be accessed via your network firewall settings. The URL of the CRL may be found in the output of the command certutil -verify -urlfetch cert.cer
. After updating the network settings, run the same command again to check the CRL status and see if the error persists.
Before reattempting the command again, you may need to clear the CRL cache and the Online Certificate Status Protocol (OCSP) on your local machine using certutil -urlcache * delete
.
Note that the CRL’s distribution URL needs to be reachable from the domain controller and the target server.