Automate certificate renewal on Active Directory Certificate Services

Autoenrollment can issue and renew certificates for domain-joined machines and users from an Enterprise CA, and the shorter public lifetimes make checking that renewals actually happen essential.

On this page

How AD CS autoenrollment automates certificate renewal for domain machines and users

AD CS autoenrollment renews certificates for domain-joined machines and users from an Enterprise Certification Authority (CA), using a certificate template that has already been configured for auto-enrollment. The shorter public certificate lifetimes set by the CA/Browser Forum do not change how your internal CA works, since those rules apply to publicly trusted certificates. What they do change is the importance of verifying your renewal settings. A template's validity period and renewal period determine when a certificate is renewed, so these values deserve a check before any lifetime change reaches your estate.

The work falls to the Windows and identity teams who run the Enterprise CA and manage Group Policy. Autoenrollment is configured in Group Policy under Computer Configuration and User Configuration, in Windows Settings, Security Settings, Public Key Policies. Within the Certificate Services Client - Auto-Enrollment setting, teams enable the configuration model and select the options to renew expired certificates and to update certificates that use templates. Microsoft's guidance is to apply these changes with gpupdate /force from an elevated Command Prompt, and to restart a server that has not enrolled after a Group Policy refresh problem.

Renewal timing depends on the template. Microsoft says that autoenrollment runs every eight hours, and that a certificate is only renewed after it has completed 80% of its validity period, so renewal happens in the last 20%. Microsoft recommends a renewal period of more than 8 hours and less than 20% of the validity period. Teams can read a template's values with certutil -dstemplate <CertificateTemplateName>, checking pKIExpirationPeriod for validity and pKIOverlapPeriod for renewal. Unsupported values cause renewals to be skipped and new enrollment requests to be sent instead, which then need CA certificate manager approval. Confirm the current behavior for your Windows Server version in Microsoft's documentation before you rely on it.

What the shortening lifetime schedule changes for AD CS renewals

This table sets each step of the CA/B Forum maximum validity schedule against what it changes on an AD CS estate, from renewal frequency to template values. The public limits apply to publicly trusted certificates, and the sources do not state how they apply to an internal CA, so confirm that scope before changing templates.

Schedule dateMaximum subscriber validityWhat it means on an AD CS estate
From 15 March 2026200 daysRenewals become more frequent for publicly trusted certificates. Check which templates issue public certificates and whether the 200-day limit reaches them.
From 15 March 2027100 daysRenewal cycles roughly halve again for public certificates. Template renewal periods must still fall between 8 hours and 20% of the validity period.
From 15 March 202947 daysRenewal becomes frequent enough that autoenrollment must run reliably. Confirm the template validity and renewal values fit this window.
Template validity (pKIExpirationPeriod)Set per templateRead the current value with certutil -dstemplate <CertificateTemplateName>. Values outside what the CA supports cause renewals to be skipped.
Template renewal period (pKIOverlapPeriod)More than 8 hours, under 20% of validityMicrosoft says renewal is triggered only in the last 20% of validity, and autoenrollment runs every eight hours, so a shorter period can miss the window.
Unsupported valuesRenewal skippedThe client sends new enrollment requests instead of renewals. Those requests need CA certificate manager approval, which adds a manual step.
Approval with Valid existing certificateRequired for renewalsWhen CA certificate manager approval and Valid existing certificate options are both enabled, approval is needed for the first enrollment and each later renewal. Plan who approves and how often.
Internal CA scopeNot stated in sourcesThe sources do not say how these public limits apply to an internal CA. Confirm with your PKI policy owner and the CA/B Forum text before changing internal templates.

How autoenrollment issues and renews certificates on AD CS

Autoenrollment on Active Directory Certificate Services is driven by the client, not by the CA. Group Policy sets the behavior: under Public Key Policies, the Computer Configuration path (Computer Configuration > Policies > Windows Settings > Security Settings > Public Key Policies) governs machine certificates, and the same path under User Configuration governs user certificates. In the Certificate Services Client - Auto-Enrollment setting, Microsoft's NPS autoenrollment guidance sets Configuration Model to Enabled and selects both 'Renew expired certificates, update pending certificates, and remove revoked certificates' and 'Update certificates that use certificate templates.' The client runs enrollment every eight hours, so a policy change or a new template can take up to that interval to be picked up. To apply settings immediately, Microsoft's guidance uses gpupdate /force in an elevated Command Prompt. The sources reviewed here do not describe a faster trigger, so confirm the interval on your own estate before relying on it.

Renewal is not attempted whenever the client runs. Microsoft's template renewal guidance says a certificate is renewed only after it has completed 80% of its validity period and is within the renewal period. Renewal is skipped during the first 80% and triggered in the last 20%. For normal behavior, Microsoft advises setting the template renewal period to more than 8 hours and less than 20% of the validity period. To read those values for a template, run certutil -dstemplate <CertificateTemplateName>: pKIExpirationPeriod is the validity period and pKIOverlapPeriod is the renewal period. Check these before you change a template's lifetime, because a combination Microsoft does not support causes the client to skip renewal and send new enrollment requests instead. Where CA certificate manager approval and Valid existing certificate are both enabled, those requests then wait for approval on the initial enrollment and on every later renewal, which can leave certificates to expire unless someone watches the queue.

Which autoenrollment option fits Computer and User certificates

Computer certificates suit domain-joined servers and workstations that need a machine identity, such as a certificate used by a web service or a Network Policy Server. Microsoft's NPS autoenrollment guidance sets this up under Computer Configuration, which lets the machine request and renew its own certificate without an administrator touching it each time. The procedure depends on AD CS being installed with at least one Enterprise Certification Authority and on a certificate template already configured for auto-enrollment.

  • Enterprise CA: AD CS must be installed with at least one Enterprise Certification Authority before autoenrollment can work.
  • Template configured for auto-enrollment: The certificate template must already be set up for auto-enrollment on the CA.
  • Public Key Policies path: Set the policy under Computer Configuration > Policies > Windows Settings > Security Settings > Public Key Policies.
  • Auto-Enrollment setting: Set Certificate Services Client - Auto-Enrollment to Enabled, and check renewal of expired certificates and updating of certificates that use templates.
  • Refresh and check: Run gpupdate /force in an elevated Command Prompt, and restart the server if Group Policy did not refresh.

Before relying on this path, confirm the template's validity and renewal periods with certutil -dstemplate <CertificateTemplateName>, and confirm the renewal period falls within the limits in Microsoft's template guidance for your environment.

Set up autoenrollment and verify the renewal period

This sequence turns on Active Directory Certificate Services autoenrollment through Group Policy and then confirms that the certificate template's validity and renewal periods allow normal renewal to occur. The result is a domain-joined machine or user that renews its certificates automatically, with a template you have checked against Microsoft's renewal guidance.

  1. Confirm the CA and template prerequisites

    Before changing any policy, confirm that AD CS is installed with at least one Enterprise Certification Authority and that a certificate template is already configured for auto-enrollment. Microsoft's NPS autoenrollment guidance lists both as prerequisites. Check the CA in the Certification Authority console and the template in the Certificate Templates console. You are done when the template you plan to autoenroll appears as an available template on the CA and its auto-enrollment permissions are in place for the target computers or users.

  2. Locate the autoenrollment policy setting

    Open the Group Policy Object that applies to the target machines or users in the Group Policy Management Console. For computers, go to Computer Configuration, then Policies, Windows Settings, Security Settings, and Public Key Policies. For user certificates, the same path sits under User Configuration. Microsoft's article uses this location for both. You are done when you can see the Public Key Policies node in the GPO you are editing.

  3. Enable the auto-enrollment client setting

    Open Certificate Services Client - Auto-Enrollment and set Configuration Model to Enabled. Then check the two renewal options named in Microsoft's guidance: 'Renew expired certificates, update pending certificates, and remove revoked certificates' and 'Update certificates that use certificate templates'. Save the policy. You are done when both options show as checked and Configuration Model reads Enabled in the saved GPO.

  4. Apply the policy on the target machine

    On a target server or workstation, open Command Prompt as an administrator and run gpupdate /force so the new settings apply immediately. If the machine does not enroll after a Group Policy refresh problem, Microsoft's article says restarting it refreshes Group Policy. You are done when gpupdate reports that the policy update completed, and the machine has had a chance to run its enrollment cycle.

  5. Read the template validity and renewal periods

    On the CA or a management host, run certutil -dstemplate with the template name in place of the placeholder. In the output, pKIExpirationPeriod is the validity period and pKIOverlapPeriod is the renewal period. Record both values. You are done when you have the two period values for the exact template the machines enroll against.

  6. Check the renewal period against the guidance

    Microsoft's template renewal guidance says the renewal period should be more than 8 hours and less than 20% of the validity period. Compare the pKIOverlapPeriod and pKIExpirationPeriod values from the previous step against that rule. Autoenrollment itself runs every eight hours, and renewal happens only after 80% of validity has passed, within the last 20%. Confirm your values with the Microsoft documentation for your Windows Server version, because the sources supplied here do not cover every edition. You are done when both checks pass, or when you have a list of templates to change.

  7. Handle unsupported values and approval requirements

    If the renewal or validity values fall outside the supported range, Microsoft says the client skips renewal and sends new enrollment requests instead. Those requests then wait for CA certificate manager approval. If you enabled the CA certificate manager approval and Valid existing certificate options, Microsoft says approval is required for the first autoenrollment and for later renewals too. Decide now whether that approval workflow is what you want, then correct the template periods if it is not. You are done when every template you rely on has values within the supported range, or the approval process is documented and staffed.

What must be in place before autoenrollment renews certificates

Autoenrollment only issues and renews certificates when the directory, the certificate authority and the client settings are all in place. The cards below cover each prerequisite in the order an administrator should confirm them, from the Enterprise CA and template through Group Policy scope, client refresh and approval permissions.

Enterprise certification authority

Autoenrollment requires AD CS to be installed with at least one Enterprise Certification Authority. A standalone CA does not provide this function, so confirm the CA type before planning renewal. Check that the CA is online, reachable from the clients and servers that will enroll, and that its role services match the certificate types you intend to automate.

Microsoft NPS autoenrollment

Auto-enrollment certificate template

A certificate template must already be configured for auto-enrollment before any client can request or renew a certificate from it. Review the template's validity and renewal periods with certutil -dstemplate <CertificateTemplateName>, reading pKIExpirationPeriod for validity and pKIOverlapPeriod for renewal. Confirm the renewal period is more than 8 hours and less than 20% of validity, since unsupported values cause renewals to be skipped.

Template renewal values

Computer and user Group Policy scope

Autoenrollment is set under Public Key Policies, once under Computer Configuration for machine certificates and again under User Configuration for user certificates. Each scope must reach the OUs that hold the machines and users you want enrolled, so check where the policy is linked and whether filtering excludes any targets. Set Configuration Model to Enabled and tick both renewal options that renew expired certificates and update certificates that use templates.

Client Group Policy refresh

Changes to autoenrollment settings take effect only when clients process Group Policy, so run gpupdate /force in an elevated Command Prompt to apply them immediately. Autoenrollment itself runs every eight hours, so renewal is not instant on a client that has not refreshed. If a server does not enroll after a Group Policy refresh problem, restarting it refreshes Group Policy.

Enrollment run interval
8 hours

Certificate manager approval permissions

When the CA certificate manager approval and Valid existing certificate options are enabled, approval is required for the initial autoenrollment and again for later renewals. Identify who holds the certificate manager role and confirm those accounts can approve pending requests. Without that role in place, renewals wait in the queue and certificates can expire before anyone acts.

How to confirm AD CS renewals keep happening

Setting autoenrollment is not the same as knowing renewals work. After you configure the Certificate Services Client - Auto-Enrollment policy under Computer Configuration or User Configuration, confirm that each sampled machine and user is actually renewing its certificates before expiry. Check the validity end date on a set of issued certificates from different groups, and compare it against the renewal window the template defines. Because a certificate renews only after it has completed 80% of its validity period, a certificate that has not yet reached that point should still look normal. Note which certificates fall into the last 20% and confirm they were replaced. Run gpupdate /force on test machines after policy changes, and where a server missed a Group Policy refresh, restart it to refresh policy, as Microsoft describes.

Watch the CA for pending requests. Under the CA certificate manager approval option, renewals that fall back to new enrollment wait for an administrator to approve them. If the template's validity and renewal values are unsupported, clients send new enrollment requests instead of renewals, and those requests then queue for approval. A growing pending list is therefore an early sign that renewals are failing, even when no certificate has expired yet. Also confirm the template values themselves. Use certutil -dstemplate <CertificateTemplateName> and check that pKIExpirationPeriod (validity) and pKIOverlapPeriod (renewal period) are the values you intended, with the renewal period longer than 8 hours and shorter than 20% of the validity period. Autoenrollment runs every eight hours, so a renewal period shorter than that can be missed.

Keep a dated record of what you checked. Store the template values you read, the approval decisions made on pending requests, the Group Policy settings in force, and the sample of machines and users you reviewed. Record who approved each pending request and why, so that a renewal approved under the valid-existing-certificate option can be explained later. Review the record after each change to templates or policy, and before the 2026 and 2027 steps in the CA/Browser Forum schedule, since shorter lifetimes will make renewal frequency and approval volume higher. Confirm the exact behavior of your Windows Server version against Microsoft's documentation, because the sources here describe the configuration path and renewal rules but do not cover every release.

Common questions about automating AD CS certificate renewal

Does autoenrollment work without ACME?

Yes. Autoenrollment is a Windows mechanism that works through Group Policy and an Enterprise Certification Authority, so it does not use the ACME protocol. Microsoft's NPS autoenrollment article lists as prerequisites AD CS installed with at least one Enterprise Certification Authority and a certificate template already configured for auto-enrollment. Autoenrollment is set under Computer Configuration > Policies > Windows Settings > Security Settings > Public Key Policies, and the same path appears under User Configuration for user certificates. The article is written for Network Policy Server, but the same procedure applies to servers and users generally. Confirm the exact steps for your Windows Server version in Microsoft's documentation before you change production policy.

How often does autoenrollment check for renewals?

Microsoft's troubleshooting article says certificate autoenrollment runs every eight hours. That interval sets how quickly a renewal can start once the renewal window opens. Renewal is not triggered at every check: Microsoft says a certificate is renewed only after it has completed 80% of its validity period and is within the renewal period. To apply Group Policy changes immediately, run gpupdate /force in an elevated Command Prompt. If a server did not enroll after a Group Policy refresh problem, restarting it refreshes Group Policy.

Why was my certificate renewal skipped?

The most common cause in the sources is a template whose validity and renewal values are not supported. Microsoft says that when unsupported values are configured, the renewal is skipped and the client sends new enrollment requests instead of renewals. Those requests then wait for CA certificate manager approval. To check a template, run certutil -dstemplate <CertificateTemplateName>, where pKIExpirationPeriod is the validity period and pKIOverlapPeriod is the renewal period. Microsoft advises setting the renewal period to more than 8 hours and less than 20% of the validity period. Also confirm the renewal falls in the last 20% of the validity period, since renewal is skipped during the first 80%.

Is approval always required for autoenrollment renewals?

No, but approval is required in one configuration. Microsoft says that with the CA certificate manager approval and Valid existing certificate options enabled, approval is required for the initial autoenrollment and also for the later renewals. If you leave those options off, the sources do not say that approval is needed for renewals, so check how your template and CA are configured. Approval adds a manual step that can delay renewals, so confirm with your PKI team which template settings apply to each certificate population before rollout.

Does the 47-day certificate limit apply to an internal CA?

The CA/Browser Forum schedule applies to publicly trusted TLS subscriber certificates. From 15 March 2026 the Baseline Requirements set the maximum validity at 200 days, from 15 March 2027 at 100 days and from 15 March 2029 at 47 days. These limits do not automatically govern a private Active Directory Certificate Services CA, which sets its own template validity. Your internal policy and any agreements with relying parties decide how long those certificates last. Confirm the scope of the Baseline Requirements in the CA/Browser Forum document before you assume it covers your internal estate. Plan renewal capacity for the shorter schedule anyway if the same automation serves public certificates.

Should we get outside help to automate AD CS renewal?

It depends on how many templates, CAs and dependent services you run and how much of the work your team can take on. Outside help is most useful for inventorying templates, correcting renewal and validity values, planning approval workflows and testing renewals against real services before they expire. DeployOpen plans, implements and documents self-hosted and Windows-based platforms inside a client's own infrastructure, and most engagements are fixed-scope, with scope and timelines agreed in writing before work starts. A quote follows from that written scope, and DeployOpen does not publish a price list. Ask any provider to show how they will test renewals without causing outages.

What does automating AD CS renewal cost?

The sources do not give a cost figure for AD CS renewal automation, so treat any number you see with caution. The main cost drivers are the number of templates and CAs, the number of services that read the certificates and need a reload, whether approval workflows are needed, and how much testing the change requires. One-time costs include the inventory, template correction and testing. Recurring costs include monitoring, template maintenance and staff time for approvals. When you request a quote, ask for the scope split between one-time and ongoing work, and what it covers for each template and service.

Can AD CS issue post-quantum certificates now?

Microsoft's security blog says AD CS support for issuing ML-DSA certificates is generally available on Windows Server 2025 as of May 2026. The same post says AD CS supports three ML-DSA parameter sets, ML-DSA-44, ML-DSA-65 and ML-DSA-87, and that post-quantum support requires newly deployed CAs because existing CAs cannot be upgraded in place. Additional capabilities, including ML-KEM and composite algorithm support, are planned later this year, with further advancements planned for 2027. Do not assume that clients or services accept these certificates yet. Confirm compatibility for the versions you run in Microsoft's documentation.

How the autoenrollment renewal flow runs between the client and the CA

Autoenrollment starts on the domain-joined client, which checks for certificate work every eight hours. A certificate becomes eligible for renewal only in the last 20% of its validity period, and the client then sends an enrollment or renewal request to the Enterprise CA. If the CA certificate manager approval option is set on the template, the request waits for approval, and the issued certificate is then delivered to the client's certificate store. Check the template's validity and renewal values with certutil -dstemplate, because unsupported values cause renewals to become new enrollment requests that need approval.

The autoenrollment check, renewal request and delivery path between the client and the Enterprise CA.

How DeployOpen helps plan and document AD CS renewal and PKI work

DeployOpen plans and documents the renewal path for certificates issued by Active Directory Certificate Services, starting from the templates, Group Policy and enterprise CA your estate already runs. We build the autoenrollment configuration in your own environment and hand over the settings, checks and runbooks your Windows and identity teams need to keep it working.

How we scope

  • We confirm the Enterprise Certification Authority, certificate templates and autoenrollment scope in writing before any work starts.
  • We inventory which machines, users and services receive certificates through autoenrollment and which need separate handling.
  • We review each template's validity and renewal periods with certutil -dstemplate so the renewal window is confirmed before changes.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing. Ongoing support is available as a retainer.

How we build

  • We configure the Certificate Services Client Auto-Enrollment policy under Computer and User Configuration in your Group Policy.
  • We set the renewal period within the range Microsoft describes, which is more than 8 hours and less than 20% of validity.
  • We test renewal on sample machines, using gpupdate /force and a Group Policy refresh, before rolling the policy out more widely.

How we hand over

  • We document the Group Policy paths, template settings and renewal periods so your team can audit and reproduce the configuration.
  • We write a runbook covering the eight-hour autoenrollment cycle and the steps to recover when a server does not enroll after a refresh.
  • We explain the CA certificate manager approval and Valid existing certificate settings, so your team knows which renewals need approval.

How we support

  • We can retest the templates and policy after Windows Server, CA or template changes, so renewal keeps working as the estate changes.
  • We can support planning for ML-DSA certificates on Windows Server 2025 CAs, noting that existing CAs cannot be upgraded in place.
  • We can review shorter public certificate lifetimes that affect services outside AD CS, using the schedule in the CA/B Forum Baseline Requirements.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.