How can Remote Desktop Services certificate renewal be automated?
Renewal of certificates on Remote Desktop Services can be scripted with Set-RDCertificate, which accepts -Role values of RDGateway, RDWebAccess, RDRedirector and RDPublishing. Manual .pfx swaps through Server Manager stop being workable once the public lifetime limits fall: the CA/Browser Forum Baseline Requirements set the maximum subscriber certificate validity at 100 days from 15 March 2027 and at 47 days from 15 March 2029. An RDS deployment that is renewed by hand once a year will not keep pace with that schedule, so the Windows infrastructure team needs a repeatable procedure before those dates arrive.
Two groups have to act. The team that owns each RDS role (RD Gateway, RD Web Access, RD Connection Broker and session hosts) must agree which certificate each role uses, confirm the FQDN that clients use to reach it, and test the import and binding on a non-production deployment. The certificate authority that issues the certificates must support a template that meets Microsoft's requirements: the Server Authentication extended key usage, an exportable private key, and a certificate trusted by both the RDS servers and the clients. If AD CS issues these certificates, the team can duplicate the Web Server template or create a dedicated one, and the CA owners should confirm which template the renewal script will request.
Before automating, check the names. Microsoft's RDS roles guidance says the RD Gateway certificate must match the FQDN used to reach the gateway, the RD Web Access certificate must match the FQDN used to access that role, and the certificate on the Connection Broker must carry its internal FQDN. In a gateway farm, the same certificate must be applied to every member. Run Get-RDCertificate on each deployment to record the current state, then script the import and -Reapply steps and verify the bindings afterward. Confirm the exact parameter behavior for your Windows Server version in Microsoft's Set-RDCertificate documentation, since -Thumbprint depends on Windows Server 2019 or later.
What the lifetime schedule changes for RDS roles
This table compares each step of the CA/Browser Forum schedule with what it means for the RDS roles on your deployment. Read each row as one step: the maximum subscriber validity, the domain validation reuse period and the subject identity reuse period listed for the same start date. The main takeaway is that the 2029 step leaves far less room for manual renewal, so the update procedure for each RDS role should be scripted before that date.
| Schedule step | What it allows | What it means for RDS roles | What fails if a certificate is not replaced in time |
|---|---|---|---|
| From 15 March 2026 | Subscriber certificates valid up to 200 days; domain validation reuse up to 200 days; subject identity reuse up to 398 days | Renewal is still possible roughly once a year, but the RDS roles must be updated on the same cycle as the certificate. Confirm the count of roles and servers per deployment before the first renewal. | Connections through RD Gateway, RD Web Access, the Connection Broker or session hosts can fail when the certificate expires, because the FQDN-matched certificate is no longer valid. |
| From 15 March 2027 | Subscriber certificates valid up to 100 days; domain validation reuse up to 100 days | Renewals roughly double compared with the 200-day step. Each renewal must update every RDS role binding, including each RD Gateway farm member, so the number of role updates per year rises with the number of servers. | Expired certificates on any role break the connection path for that role. The RD Gateway farm may partly fail if one member keeps an old certificate. |
| From 15 March 2029 | Subscriber certificates valid up to 47 days; domain validation reuse up to 10 days | Renewals become frequent enough that manual steps are impractical. Confirm with your CA and your Microsoft documentation how the RDS certificate import and role binding can be scripted, and whether the Set-RDCertificate steps can run unattended. | A missed renewal causes an outage on the affected roles within days, not months. Domain validation data must also be refreshed within 10 days, so the validation method must be automated as well. |
| Subject identity reuse, from 15 March 2026 | Subject identity information reusable up to 398 days | This period does not change the renewal cadence for RDS roles, but it limits how long the subject details in an existing certificate can be reused at renewal. | If subject details change and the old identity is reused past the limit, the CA may refuse issuance, and the RDS renewal stalls until a new certificate is requested. |
| Renewals per year (illustrative) | Roughly 2 renewals at 200 days, 4 at 100 days, 8 at 47 days | Count the RDS roles and farm members that each renewal touches. An illustrative deployment with one certificate across four servers needs four role updates per renewal, multiplied by the renewals per year at each step. | A renewal missed on one server while the others are updated leaves mixed certificates in the deployment, which is hard to diagnose from the client side. |
How do RDS roles hold and pick up certificates?
Remote Desktop Services uses SSL or TLS to encrypt connections to its RDS Web, Connection Broker and Gateway role services, so each of those roles needs a certificate that the deployment can use. Microsoft's requirements set the bar for what that certificate must be. It must carry the Server Authentication Enhanced Key Usage, OID 1.3.6.1.5.5.7.3.1. It must be issued by a certificate authority that the RDS servers and clients trust. Its private key must be exportable, and it must be delivered as a .pfx file that includes the private key. Before you request or renew anything, check each of these properties against the certificate you plan to deploy, because a certificate that misses one of them will not do the job even if it is installed and visible in the store.
When you install a certificate through Server Manager, the console imports it to all servers in the deployment, places it in the trusted root on each server, and binds it to each of the roles that use it. The route runs through Server Manager, then Remote Desktop Services, then Overview, then Deployment Overview, then TASKS, then Edit Deployment Properties, then Certificates, where you select an existing certificate and browse to the .pfx. The PowerShell route uses Set-RDCertificate with the -Role value and an -ImportPath pointing at the .pfx, and Get-RDCertificate lists what each role currently holds. Confirm which role names and parameters your Windows Server version supports in the Microsoft documentation before you script a renewal, because -Thumbprint is limited to Windows Server 2019 and later.
Which renewal methods RDS supports
The GUI route is the one Microsoft describes for a deployment managed through Server Manager. You open Remote Desktop Services, go to the deployment overview, choose Edit Deployment Properties, and then select the Certificates page. From there you pick the existing certificate and browse to the .pfx file that holds it. Microsoft says that with multiple servers in the deployment, Server Manager imports the certificate to all servers, places it in the trusted root on each server and binds it to its respective roles.
- Navigation path: Server Manager > Remote Desktop Services > Overview > Deployment Overview > TASKS > Edit Deployment Properties > Certificates.
- Certificate source: The option is Select existing certificate, which requires a .pfx file that contains the private key.
- Multi-server behavior: One import covers every server in the deployment, and Server Manager binds the certificate to each role.
- Export requirement: The private key must be exportable, so confirm this with your issuing CA before you start.
- Scope: The sources describe this path for a deployment managed in Server Manager. Confirm against Microsoft's documentation whether it applies to your deployment model.
Before relying on this route for renewal, check that the new .pfx carries the same Server Authentication EKU and the FQDN each role is reached on.
The PowerShell route uses the Set-RDCertificate cmdlet, which imports a certificate or applies an installed certificate to an RDS role. Its -Role values are RDGateway, RDWebAccess, RDRedirector and RDPublishing. Microsoft's example passes the Role RDWebAccess, a Password secure string and an ImportPath that points to the .pfx file, and Get-RDCertificate lists the configured certificates afterward. This route is the one to script when renewal must be repeated across roles.
- Parameter sets: Set-RDCertificate has Reapply, Import and Thumbprint parameter sets, so the parameters you pass determine which one runs.
- Import path: The -ImportPath and -Password parameters supply a .pfx file and its password for import.
- Thumbprint selection: The -Thumbprint parameter is available on Windows Server 2019 and later. Confirm the version on each host before you rely on it.
- Broker targeting: -ConnectionBroker names the RD Connection Broker server and defaults to the local computer's FQDN. Set it explicitly when you run the cmdlet from another host.
- Confirmation: -Force performs the action without a confirmation message, which matters when the cmdlet runs in a scheduled script.
Test the parameter set and the role values in a non-production deployment before you wire the cmdlet into a renewal job.
When Active Directory Certificate Services issues the RDS certificates, Microsoft says you can duplicate the Web Server certificate template or create a certificate template for them. The issued certificate still has to meet the RDS requirements: a Server Authentication EKU of 1.3.6.1.5.5.7.3.1, the Enhanced Key Usage and Key Usage extensions, issuance by a CA trusted by the RDS servers and clients, and an exportable private key delivered in a .pfx with the private key. This route covers how the certificate is requested and issued, and the import steps above cover how it reaches the roles.
- Template choice: Duplicate the Web Server template or build a new template, and set the subject to match the names the roles are reached on.
- Required EKU: The Server Authentication EKU 1.3.6.1.5.5.7.3.1 must be present on the certificate.
- Exportable key: The private key must be marked exportable so the .pfx can be produced for import.
- Trust: The issuing CA must be trusted by the RDS servers and by the clients that connect to them.
- Name matching: The certificate name must match the FQDN used to reach RD Gateway and RD Web Access, and the internal FQDN of the RD Connection Broker virtual machine.
Check the template settings against the requirements in Microsoft's RDS certificate article before you deploy the template to production.
What is the order of work for a renewal?
The sequence confirms the replacement certificate meets Microsoft's RDS requirements, packages it for import, applies it to each role against the connection broker, and checks that every role now reports the new certificate. Following the same order each renewal keeps the RD Gateway, Web Access, Redirector and Publishing roles bound to one certificate set. Each step below names the check that closes it.
Confirm the certificate meets RDS requirements
Before anything is imported, the person renewing the certificate checks that it has the Server Authentication enhanced key usage (1.3.6.1.5.5.7.3.1), carries the Enhanced Key Usage and Key Usage extensions, is issued by a CA trusted by both the RDS servers and their clients, and has an exportable private key. The certificate name must also match the FQDN users use to reach RD Web Access and RD Gateway, and the internal FQDN of the RD Connection Broker. Done when each of these properties has been confirmed against the new certificate, not assumed from the previous one. Confirm the exact requirements against Microsoft's RDS certificates article, since the page is the reference for them.
Export the certificate as a .pfx with its private key
Export the new certificate from the issuing CA's store or your certificate tool as a .pfx file that includes the private key, and protect it with a password. Store the file where the administrator running the import can reach it, and keep the password in your secrets process rather than in a script. Done when the .pfx opens with its password and shows the private key present. Microsoft's RDS certificates article describes this export as a requirement for the import path.
Import the certificate for each RDS role
Run Set-RDCertificate once for each role: RDGateway, RDWebAccess, RDRedirector and RDPublishing. Pass the -Role value, the -ImportPath pointing to the .pfx, the password as a secure string, and the -ConnectionBroker parameter naming the RD Connection Broker host. The -ConnectionBroker value defaults to the local computer's FQDN, so set it explicitly if you run the command from another server. Add -Force only if you want the command to skip the confirmation prompt. Done when each command returns without an error for its role.
Bind the new thumbprint to each role
Where the import does not already bind the new certificate, apply the installed certificate to each role by its thumbprint using the Thumbprint parameter set of Set-RDCertificate, or use the Reapply parameter set to reapply the certificate already configured for a role. The Thumbprint parameter is available on Windows Server 2019 and later, so confirm your server version first. Done when each role references the new thumbprint and not the old one. Microsoft's Set-RDCertificate reference lists the parameter sets for each case.
Verify the configured certificates with Get-RDCertificate
Run Get-RDCertificate against the connection broker and review the certificate listed for each of the four roles. Confirm that each entry shows the new thumbprint and the expected subject name, and that no role still points to the previous certificate. Done when all four roles list the new certificate. If you run a gateway farm, check the certificate on each gateway member as well, since the RD Gateway roles article describes scaling into a load-balanced set.
Test client connections through the gateway
From a client outside the internal network, connect through RD Gateway and open RD Web Access, and confirm the browser shows the new certificate with no name mismatch warning. Repeat from an internal client against the connection broker to check the single sign-on path. Done when both connections succeed without a certificate warning. Record the test result and the thumbprint used so the next renewal can be checked the same way.
What must be in place before renewing RDS certificates
Renewing a certificate on Remote Desktop Services only works when the roles, names, trust and key material line up before you start. Each card below is one condition to confirm on every server in the deployment, so that the renewal can be automated without breaking client sign-in.
Windows Server 2019 or later
The -Thumbprint parameter of Set-RDCertificate is available only on Windows Server 2019 and later, so the thumbprint-based renewal approach in this guide depends on the OS level of every RDS server. Confirm the version on each Connection Broker, Gateway, Web Access and session host before scripting anything. Servers on earlier releases need the -Import path with a .pfx file, which is a different automation design. Record the version of each server in your inventory so the renewal script can branch correctly.
IIS for RD Web Access
RD Web Access depends on IIS, so the web server role must be installed and healthy before the RDS certificate can be bound to that role. A renewal that changes the certificate without IIS in place will not complete correctly. Check that IIS is running and that the RD Web Access site is present, since the certificate is applied to the role through that service. Treat IIS as part of the RD Web Access dependency chain rather than a separate task.
RDS roles articleInbound TCP 443 and UDP 3391
RD Gateway uses SSL to encrypt traffic between clients and the server and needs inbound TCP 443 and UDP 3391 open for the service to work. A renewal can succeed on the server while clients still fail if these ports are blocked at a firewall or load balancer in front of the gateway. Verify both ports reach each gateway, including every member of a gateway farm. Confirm the path before a renewal window so a connectivity fault is not mistaken for a certificate fault.
RDS roles articleA CA trusted by servers and clients
Microsoft's requirements call for a certificate issued by a certificate authority that the RDS servers and the client machines both trust. If the issuing CA is not in the trust store of a client, sign-in and gateway connections will fail after renewal. When AD CS issues the certificate, you can duplicate the Web Server certificate template or create a template for RDS. Confirm trust on every server and every client group before the first automated renewal.
RDS certificates docsCertificate names matching each role
The certificate name must match the FQDN that clients use to reach each role. For RD Gateway and RD Web Access, that is the public or published name used to connect. For single sign-on and application publishing, the name must be the internal FQDN of the RD Connection Broker virtual machine. A name mismatch produces a certificate that is valid but still rejected by clients, so list the names each role uses before you request the new certificate.
RDS roles articleExportable private keys
Microsoft's RDS certificate requirements include an exportable private key, and a .pfx export that carries the private key. If the key is marked non-exportable at issuance, the import and reapply steps cannot move the certificate to every server in the deployment. Set the key as exportable in the certificate template or request, and store the .pfx protection password in your secrets system. Confirm this before the first renewal so the process does not stop partway through.
How does a renewed certificate reach each RDS role?
The renewed .pfx is imported with Set-RDCertificate on the RD Connection Broker, which targets each role separately: RDGateway, RDWebAccess, RDRedirector and RDPublishing. Each import binds the certificate to its role by thumbprint, and the trusted root must also be updated so clients and the Connection Broker trust it. Finish by running Get-RDCertificate to confirm that every role lists the new certificate. Check that each certificate name matches the FQDN users and the Connection Broker use, because a mismatch breaks the bindings the diagram describes.
Each RDS role receives the renewed certificate through the Connection Broker and is confirmed afterward.
How do you confirm RDS renewals keep happening?
Confirming that RDS renewals keep happening means checking the role certificates themselves, not assuming the last import worked. Start with Get-RDCertificate, which lists the certificates configured for each RDS role. For every role that uses a certificate (RD Gateway, RD Web Access, RD Connection Broker and RD Redirector or RD Publishing where they apply), read the expiry date from the output and compare it with the lifetime your renewal process is meant to hold. Because each role can carry a different certificate, a single check on one server tells you little. Run the check against the Connection Broker, since it is the server that names the deployment, and against every gateway and web access server in the farm.
For each role, record three things: the thumbprint, the FQDN the certificate is bound to, and the expiry date. The thumbprint is what you will compare after the next renewal, so a changed thumbprint with a later expiry is your evidence that the import took effect. The FQDN should match the name users and clients actually reach, since Microsoft's RDS roles guidance says the certificate must match the FQDN used to access RD Gateway and RD Web Access, and that the Connection Broker certificate name must be its internal FQDN. Keep this record dated, with one entry per import, so an auditor or customer can trace when each certificate was bound and to which role. Store it somewhere that outlives the server, such as a change log or configuration repository.
Alerting and log settings depend on your environment. Confirm the expiry threshold, the alert destination and how long import logs are kept against your organization's own monitoring tools and retention policy, rather than relying on defaults.
Questions people ask about renewing RDS certificates
Does Remote Desktop Services support ACME for certificate renewal?
The sources listed on this page do not say that RDS roles can obtain or renew certificates directly over ACME. RDS certificates are installed through Server Manager or the Set-RDCertificate PowerShell cmdlet, using a .pfx file that contains the private key. Renewal therefore means producing a new .pfx and re-applying it to each role. Confirm with Microsoft's RDS certificate documentation and your ACME client's documentation whether an automated path exists for your version before you design the workflow. Plan the renewal steps around the .pfx import method the sources do describe.
How often will RDS certificates need renewal under the 100-day and 47-day schedule?
The CA/Browser Forum Baseline Requirements set the maximum validity of publicly trusted subscriber certificates at 200 days from 15 March 2026, 100 days from 15 March 2027, and 47 days from 15 March 2029. Those are maximums, so a certificate may be issued for less. Under the 100-day limit, renewal every few months is the planning baseline, and under the 47-day limit it becomes roughly every six weeks. Confirm the lifetime your certificate authority issues, since the rule applies to what the CA issues, not to what your RDS roles accept. Check whether your internal CA falls under these rules at all.
Do RDS certificates need wildcard or internal names?
The names depend on the role. RD Gateway needs a trusted CA certificate whose name matches the FQDN users use to reach the gateway. RD Web Access needs a certificate matching the FQDN used to access it. The RD Connection Broker certificate must use the internal FQDN of the Connection Broker virtual machine, and matching certificates are needed on that server and on clients for single sign-on and application publishing. The sources do not say whether wildcard certificates are supported for these roles, so confirm that with Microsoft before you use one. Keep each name listed so renewals do not break an existing binding.
What happens when an RDS certificate expires?
The sources listed on this page do not describe the exact client behavior on expiry. They do establish that the RDS roles use the certificate to encrypt connections, and that clients and the Connection Broker need a matching, trusted certificate for single sign-on and publishing. An expired or mismatched certificate can therefore break those connections. Track expiry dates for every role, including each member of a gateway farm, and confirm the failure behavior in your own test environment before relying on it.
Is Server Manager or PowerShell better for a farm?
For a multi-server deployment, Server Manager imports the certificate to all servers, places it in the trusted root on each server, and binds it to its roles, which makes it the simpler starting point. PowerShell gives repeatable steps for scripting and can target roles with Set-RDCertificate, using -Role values RDGateway, RDWebAccess, RDRedirector and RDPublishing, with -ConnectionBroker naming the broker and -Force skipping confirmation. The -Thumbprint parameter is available on Windows Server 2019 and later. Choose PowerShell when renewal must run unattended, and confirm the behavior of each parameter set against Microsoft's Set-RDCertificate documentation for your version.
Do we need outside help to automate RDS certificate renewal?
Whether you need help depends on how many roles and servers you run, and whether your certificates come from Active Directory Certificate Services or an outside certificate authority. The main work is producing a correct .pfx for each renewal, applying it to every role, and checking bindings afterward. A small deployment with a single gateway may be handled in-house with Server Manager. A gateway farm with several load-balanced members and a PowerShell-driven renewal process is more work to design and test. DeployOpen plans and implements that kind of setup as a fixed-scope engagement, with the scope agreed in writing before work starts.
What do we need to plan before automating RDS certificate renewal?
Start by listing every RDS role, its FQDN, and the certificate currently bound to it. Confirm that each certificate meets Microsoft's requirements: the Server Authentication EKU, Enhanced Key Usage and Key Usage extensions, issuance by a CA trusted by the servers and clients, and an exportable private key. If AD CS issues the certificates, you can duplicate the Web Server template or create a dedicated template. Then decide how the new .pfx reaches each server and how the import is verified. Test the whole path in a non-production deployment first, since a failed binding can break sign-in for users.
When should a team bring in outside help for RDS certificates?
Bring in outside help when the RDS certificate work is larger or riskier than a single administrator can handle on their own. The clearest signal is a gateway farm of several virtual machines behind a load balancer, where each member may hold a different certificate, some may have been renewed and others not, and the roles on each server may be bound to different thumbprints. Microsoft documents that RD Gateway can be scaled into a farm of several virtual machines in a load-balanced set, and that Server Manager imports a certificate to all servers when the deployment has multiple servers. Reconciling what is actually bound on each server, role by role, with Get-RDCertificate, is often where teams find drift they did not know existed. If that inventory takes more than a short, repeatable pass to complete, an outside team can help you map it before you change anything.
A second signal is a regulated environment that needs evidence of each renewal. Renewing through the Server Manager GUI or Set-RDCertificate produces a working result, but it does not by itself produce a record that an assessor can trace: which certificate was issued, from which CA, with which Server Authentication EKU, when it was bound to which role, and who approved it. Plan for that evidence before the first renewal, not after. Ask any provider to show how they capture it, and confirm that the process matches your own change management policy. The sources listed on this page do not say what a compliance assessor will accept, so confirm that with your auditor.
Third, get help before the schedule forces the issue. Under the CA/Browser Forum Baseline Requirements, the maximum validity for subscriber certificates falls to 100 days from 15 March 2027 and to 47 days from 15 March 2029. If your RDS certificates come from a public CA, each renewal will come sooner, and a manual process that works once a year will not keep pace. Teams that also plan a move to a new internal CA, or to ML-DSA certificates on Windows Server 2025, should settle the CA and template design first, because Microsoft says existing CAs cannot be upgraded in place for post-quantum support. Ask any provider for a written scope covering inventory, the renewal runbook, and a tested rollback for each role, before work begins.
How DeployOpen helps teams automate RDS certificate renewal
DeployOpen approaches RDS certificate renewal by first mapping which roles hold which certificates, including RD Gateway, RD Web Access, the RD Connection Broker and session hosts. We then build a renewal method that reapplies certificates to each role and keeps them matched to the names clients use. Engagements are scoped in writing before work starts.
How we scope
- Inventory every RDS role, the certificate each one holds and the FQDN clients use to reach it.
- Confirm which certificates come from AD CS and which are issued by another trusted CA.
- Agree the written scope, deliverables and timeline with your team before any changes are made.
How we build
- Set up the renewal workflow using Set-RDCertificate for each role, tested against your deployment.
- Confirm certificate templates meet the Server Authentication and exportable key requirements.
- Test renewal on a staging deployment, including RD Gateway farm members if you run them.
How we hand over
- Document the renewal steps, PowerShell commands and the role-to-certificate mapping for your team.
- Walk your administrators through a manual renewal and a verification with Get-RDCertificate.
- Deliver the runbook and configuration records so future renewals can be repeated without us.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer for your deployment.
- Review renewal results after each cycle and adjust the workflow when roles or certificates change.
- Plan for the 200-day, 100-day and 47-day public certificate schedule as your renewal cadence changes.

