Automate certificate renewal on Cloudflare

Cloudflare renews its Universal SSL edge certificates for you, but Origin CA certificates on your servers stay your responsibility. This page covers how each works, what the shorter lifetimes change, and how to confirm renewals keep happening.

On this page

How Cloudflare renewal is automated, and what shorter lifetimes change for your team

Cloudflare issues, renews and deploys Universal SSL edge certificates for you automatically, so for the hostnames it proxies, the edge side of your renewal work is largely handled. Origin CA certificates, which encrypt traffic between Cloudflare and your origin server, are a different matter. Your team has to build and track an API-driven process to create and replace them, because Cloudflare does not send expiration notices for them. Universal certificates are domain validated with a 90 day validity period, and auto renewal starts 30 days before expiration. Cloudflare also controls the validity periods and the certificate authorities for these certificates, so you do not choose either.

The CA/Browser Forum schedule changes how often the certificates you still manage must be renewed. Under Baseline Requirements version 2.3.2, maximum subscriber certificate validity drops to 200 days from 15 March 2026, to 100 days from 15 March 2027, and to 47 days from 15 March 2029. Domain validation data reuse shrinks on the same dates, to 10 days by 2029. Any certificate that is not an edge certificate under Cloudflare's control, including origin certificates on your own servers and private certificates on internal hosts, falls under these limits. Whoever owns those certificates, usually the platform or PKI team, has to automate their renewal before the shorter terms apply.

The practical question for your team is whether the Origin CA process runs without a person in the loop. Confirm that the API token has Zone, SSL and Certificates, Edit permission and that the job can call the list, create, get and delete certificate endpoints. Record expiry dates in your own monitoring, because Cloudflare will not warn you. Check how each origin server loads the new certificate and whether it needs a reload. Also confirm that partial (CNAME) setups have correct domain control validation records, since missing records can cause a brief period of downtime. Run a test renewal well before the 2027 date, and treat anything that cannot be automated as a planned replacement item.

The lifetime schedule against what each step means on Cloudflare

This table sets each CA/B Forum milestone against what it means for Universal SSL, which Cloudflare renews automatically, and for Origin CA or self-managed certificates, which you renew yourself. Read each row as one date, then check the right-hand column if you manage certificates outside Universal SSL. The main takeaway is that the work for self-managed certificates grows at each step, while Universal SSL renewal stays with Cloudflare.

Date and limitUniversal SSL (Cloudflare-managed)Origin CA or self-managed certificates
15 March 2026: 200-day maximum validity and reuseRenewal stays automatic. Cloudflare issues and renews Universal certificates with a 90-day validity period, so this step does not change your work.Maximum subscriber certificate validity drops to 200 days. Expect more renewals per year than before, and confirm your renewal tooling and expiry tracking handle the shorter cycle.
15 March 2026: 398-day identity reuseNo action needed on your side. Cloudflare handles validation for Universal certificates.Subject identity information may be reused for up to 398 days. Check when your organization's identity records were last verified before relying on earlier validation.
15 March 2027: 100-day maximum and domain validation reuseRenewal stays automatic. Confirm DCV records remain correct in partial (CNAME) setups so validation does not wait until traffic is proxied.Maximum validity drops to 100 days, and domain validation data may be reused for only 100 days. Manual renewal steps need to be automated or they will not keep pace.
15 March 2027: CAA accounturi and validationmethods processing (RFC 8657)Cloudflare handles CAA processing for its issued certificates. Check that your CAA records do not block Cloudflare's certificate authorities.Certificate authorities start processing the accounturi and validationmethods CAA parameters. Review CAA records that govern your self-managed issuance before this date.
15 March 2029: 47-day maximum validityRenewal stays automatic. Universal SSL timing is set by Cloudflare, so ask Cloudflare which validity periods apply to your zone.Maximum validity falls to 47 days, so certificates renew far more often. Manual renewal does not scale at this cadence, and automation of issuance and deployment becomes necessary.
15 March 2029: 10-day domain validation reuseCloudflare revalidates domains on its own schedule. Confirm that validation for your hostnames succeeds through routine checks.Domain validation data may be reused for only 10 days. Each renewal likely needs fresh validation, so the validation method you choose must run unattended.

How Universal SSL and Origin CA certificates get issued and renewed

Cloudflare runs two different certificate types, and renewal works differently for each. Universal SSL is the free certificate Cloudflare issues for the edge, the connection between visitors and Cloudflare. Cloudflare issues and renews these certificates and handles deployment automatically. They are publicly trusted, unshared and domain validated, and each has a 90-day validity period. Auto renewal starts 30 days before expiration. Cloudflare chooses the certificate authority and the validity period for Universal SSL, and the dashboard page offers no option to change either. Before relying on this, confirm the current behavior in Cloudflare's documentation, since the validity and renewal settings for other certificate types differ.

Cloudflare's public certificate authorities for Universal SSL are Let's Encrypt, Google Trust Services, SSL.com and Sectigo, with Sectigo used for backup certificates only. Let's Encrypt issues 90-day certificates. Google Trust Services and SSL.com issue 14-, 30- and 90-day certificates. Sectigo's backup certificates are 90 days. Because Cloudflare picks the authority, your team should not assume a particular CA will issue a given hostname's certificate, and any allow list or pinning rule that depends on one issuer needs review. In partial (CNAME) setups, domain control validation records must be configured correctly. Without them, validation waits until traffic is proxied, which can cause a brief period of downtime, so check this during onboarding.

Origin CA certificates are different. They encrypt only the traffic between Cloudflare and your origin server, not the traffic between browsers and your origin. You create them through the Cloudflare API or dashboard, and the private key is shown once, so store it at creation time. Cloudflare does not send expiration notifications for Origin CA certificates, and its documentation describes creating a new certificate rather than a renewal process. Your team therefore has to track expiry and reissue and redeploy the certificate on the origin before it lapses. Automation uses an API token with Zone, SSL and Certificates, Edit permission and the certificates endpoints. Revoking an Origin CA certificate is permanent, and pausing Cloudflare or disabling proxying can cause untrusted-certificate errors at the origin.

Which automation option fits each certificate type on Cloudflare

Universal SSL is the default edge certificate for domains proxied through Cloudflare. Cloudflare issues, renews and deploys these free, publicly trusted, domain validated certificates, so there is little to automate beyond setting up validation and keeping traffic proxied. The certificate has a 90 day validity period, and automatic renewal starts 30 days before expiration. Cloudflare controls the validity period and the certificate authority, and the page offers no CA choice.

  • Validity: 90 days, with renewal attempts starting 30 days before expiration and continuing until 24 hours before expiry.
  • Certificate authorities: Cloudflare selects the CA, so you cannot pick one for Universal SSL.
  • Partial (CNAME) setups: Domain control validation records must be configured correctly, or validation waits until traffic is proxied, which can cause a brief period of downtime.
  • Failed renewals: Cloudflare deploys another valid certificate for the hostname in the last 24 hours if renewal fails.
  • Validation fallback: HTTP validation can fall back to TXT validation after 15 days of failure for 90 day certificates.

Before relying on Universal SSL, confirm that the DNS records for each hostname are proxied and that validation records are in place for any partial setup.

Set up renewal for Universal SSL and Origin CA certificates, in order

This sequence confirms that Cloudflare can issue and renew edge certificates for your hostnames, then adds origin certificates on the server side with a tracked expiry date. The result is edge certificates that renew without manual work and origin certificates with a known replacement schedule, since Cloudflare sends no expiration notices for origin certificates.

  1. Confirm the zone is proxied and hostnames are covered

    Check in the Cloudflare dashboard that each hostname you need is served through the proxy (orange-cloud status on its DNS record) and that the hostname falls under the zone's Universal SSL coverage. Hostnames that are not proxied will not receive a Cloudflare edge certificate, so they will not renew through this path. Done when every hostname you plan to serve appears as proxied and covered in the edge certificate list. Confirm the exact view and labels in the current Cloudflare documentation, since the dashboard layout may change.

  2. Configure domain control validation for partial setups

    If you use a partial (CNAME) setup, where the apex or subdomain is not moved fully onto Cloudflare, add the domain control validation records before relying on automatic renewal. Without these records, validation waits until traffic is proxied, which can cause a brief period of downtime. Done when the validation records are published, resolve correctly from outside your network, and Cloudflare reports the certificate as validated. Consult the Universal SSL documentation for the exact record format for your setup.

  3. Choose validity options if Advanced certificates apply

    If your plan includes Advanced certificates, review the validity options available to you, which include periods such as 3 months, 1 month and 2 weeks with different renewal start points. The 1 month and 2 week options are not supported by Let's Encrypt, so your choice of certificate authority affects which options you can select. Done when you have recorded the validity period and renewal window for each certificate you order. Confirm the options available on your plan in the validity periods reference, since plan eligibility changes.

  4. Create an API token for origin certificates

    For origin certificates, create an API token with the Zone, SSL and Certificates, Edit permission, scoped to the zone that holds the hostnames. Origin CA automation depends on this token, so keep its scope limited to what the script needs. Done when the token is saved in your secrets store and a test call against the certificates listing endpoint returns a successful response for the zone. Check the Origin CA page for the current token creation steps.

  5. Script origin certificate creation and store the key

    Write a script that creates the origin certificate through the POST certificates endpoint, which returns the private key in the response. Store that private key in your secrets manager at once, because Cloudflare does not let you view it again after the creation screen or response. Done when the script saves the certificate and private key to secure storage and the key is no longer printed to logs or left on disk in plain form. Confirm the request fields and response format in the Origin CA documentation before you run the script in production.

  6. Install the origin certificate on the origin server

    Install the certificate and its private key on your origin server in the location and format your web server expects, then reload the service so it presents the new certificate. Cloudflare's connection to the origin depends on this step, so a wrong chain or key breaks traffic between Cloudflare and the origin. Done when the origin serves the Origin CA certificate to a request coming through Cloudflare and the proxied site loads without a certificate error. Check your web server's documentation for its reload command and certificate file format.

  7. Schedule origin certificate replacement before expiry

    Since Cloudflare sends no expiration notifications for origin certificates, record each certificate's expiry date and schedule the replacement run ahead of it. Your automation should create the new certificate, install it, and then remove the old one with the DELETE certificates endpoint only after the new one is serving. Done when a scheduled job or ticket for each origin certificate exists, with a dated reminder and a tested replacement path. Revoking a certificate is permanent, so verify the new certificate is live before you revoke the old one.

What has to be in place before renewal can run unattended

Cloudflare handles renewal for Universal SSL at the edge, but the surrounding setup decides whether it runs without intervention. The cards below cover the account, DNS, token, key storage, origin reachability and plan level that each need checking before you rely on automation.

Account, zone and proxying

Universal SSL certificates are issued and renewed for zones that Cloudflare serves, so the domain must be a zone in your Cloudflare account with proxying enabled for the hostnames you want covered. Confirm that each hostname resolves through Cloudflare, since a hostname that is not proxied does not receive the edge certificate automation described for Universal SSL. Check this before assuming renewal is handled for every name in the zone.

Universal SSL docs

DNS records for DCV in partial setups

If you use a partial (CNAME) setup, domain control validation must be configured correctly. Without the DCV records in place, validation waits until traffic is proxied, which causes a brief period of downtime. Confirm the DCV records exist for each partial hostname and that they resolve as expected before the first renewal window, so validation does not stall at the point of renewal.

Universal SSL docs

API token for origin automation

Automating Origin CA certificates needs an API token with Zone, SSL and Certificates, Edit permission. The same token must be able to call the list, create, retrieve and delete certificate endpoints. Scope the token to the zones it manages, store it in your secrets system, and record which team owns it so that a rotated or revoked token does not silently stop renewal.

Origin CA docs

Secure storage for origin private keys

Origin CA private keys can be RSA or ECC, and the key cannot be viewed again after you leave the creation screen. Generate or capture the key in a controlled way and store it in a secrets manager or protected file location with restricted access. Losing the key means issuing a new certificate, so the key store should be backed up and included in your renewal runbook.

Origin CA docs

Origin reachability for the installed certificate

An Origin CA certificate only encrypts traffic between Cloudflare and your origin, so the origin must be reachable and must serve the newly installed certificate after each renewal. Pausing Cloudflare or disabling proxying can cause untrusted-certificate errors. Confirm that your reload process picks up the new certificate and test the origin path from Cloudflare after each change.

Origin CA docs

Plan level for 1-year certificates

Advanced certificates with a 1-year validity period are available only on Enterprise and only from SSL.com. Shorter Advanced options exist on other plans, but the 1-year option depends on your plan and CA choice. Confirm your plan level and the CA before you design the renewal schedule, since the renewal window for the 1-year option starts 30 days before expiration.

Validity periods

How to confirm Cloudflare renewals keep happening

Confirming that Cloudflare renewals keep happening depends on which kind of certificate you are checking, because the two kinds are monitored differently. For Universal SSL certificates, which Cloudflare issues and renews for the hostnames on your zone, renewal activity is visible in the Cloudflare dashboard, so the team should check there on a regular schedule. The sources supplied for this page do not document email or other notifications for Universal SSL renewals, so the dashboard should not be the only thing you rely on. Pair it with independent expiry monitoring of each public hostname, which tells you what certificate a client actually receives and when it expires. If a renewal fails, the hostname's expiry monitor is the signal that will reach you first. Confirm the monitoring tool and its alert thresholds against your own environment, since the sources do not name them.

Origin CA certificates work differently, and they need more work from your team. Cloudflare sends no expiration notifications for them, and the sources describe creating a new certificate rather than a renewal process. That means the team has to track expiry itself. For each Origin CA certificate, record its certificate ID, its expiry date, and every place it is installed, such as the origin web server, load balancer or other component that presents it. Then set an alert that fires well before the expiry date and assign an owner to act on it. Without that record, a certificate can expire while still in use, and pausing Cloudflare or disabling proxying can then surface untrusted-certificate errors at the origin. The same inventory serves a second purpose: an auditor or customer asking how certificates are managed will usually want the list of certificates, their issuance dates and where each one is deployed, so keep it current.

How Universal SSL and Origin CA renewal flows through Cloudflare and the origin

The diagram follows two separate paths. Universal SSL starts at Cloudflare's edge: Cloudflare issues the certificate, validates the domain over HTTP or TXT with DCV records, renews it automatically from 30 days before expiry, and deploys it to the edge without team action. Origin CA is a separate path that your team runs: an API token creates the certificate through the POST certificates endpoint, you install the certificate and private key on the origin, and you track expiry yourself because Cloudflare sends no expiration notices. Browser traffic reaches Cloudflare under the edge certificate, and the Origin CA certificate covers only the Cloudflare-to-origin leg.

Universal SSL renews automatically at the edge, while Origin CA is issued and tracked by your team.

Common questions about renewing Cloudflare certificates

Does Cloudflare renew certificates automatically? For Universal SSL, yes. Cloudflare issues and renews free, publicly trusted, domain validated certificates and handles deployment itself. Universal certificates have a 90 day validity period, and automatic renewal starts 30 days before expiration. Renewal attempts continue until 24 hours before expiration. Your team does not choose the certificate authority for Universal SSL, because Cloudflare controls both the validity periods and the CAs. If your team needs to choose a CA or a different lifetime, Cloudflare's advanced certificates offer those options, and the sources say which of them Let's Encrypt does not support. Confirm the current options in Cloudflare's documentation before you plan around them.

Do Origin CA certificates renew automatically? No. Origin CA certificates encrypt traffic between Cloudflare and your origin only, and Cloudflare does not send expiration notifications for them, so your team must track expiry itself. The Cloudflare page describes creating a new certificate through the API rather than a renewal process. Automation uses an API token with Zone, SSL and Certificates, Edit permission and the endpoints for listing, creating, retrieving and deleting certificates. Revoking an Origin CA certificate is permanent, and the private key cannot be viewed after you leave the creation screen, so store the key securely when it is issued. Also check the limits: certificates allow up to 200 SANs, do not allow IP address SANs, and wildcards cover one level only.

What happens when renewal fails, and when should you get help? If a Universal SSL renewal fails, Cloudflare deploys another valid certificate for the hostname in the last 24 hours before expiration. In partial (CNAME) setups, domain control validation must be configured correctly, because without DCV records validation waits until traffic is proxied, which can cause a brief period of downtime. HTTP validation can fall back to TXT validation after a set number of days of failure, which depends on the certificate's lifetime and does not apply to Custom Hostname certificates. Confirm these windows in Cloudflare's validity period reference. Get outside help if origin certificates expire unnoticed, if pausing the proxy or disabling proxying causes untrusted certificate errors, or if your origin systems need automation that the API token and endpoints do not cover.

How DeployOpen helps teams automate certificate renewal and plan the move to shorter lifetimes

DeployOpen scopes, builds and hands over certificate automation for Cloudflare-fronted sites, covering edge certificates, origin certificates and the renewal paths between them. Each engagement is fixed-scope, with the work, deliverables and timelines agreed in writing before it starts.

How we scope

  • We inventory which hostnames use Universal SSL, which use partial (CNAME) setup and which need Origin CA certificates.
  • We confirm DCV records for partial setups so validation does not wait until traffic is proxied.
  • We agree in writing which origin certificates are in scope, who tracks their expiry, and how that tracking is handled.

How we build

  • We set up the API token with Zone, SSL and Certificates, Edit permission and script the Origin CA issue and replace calls.
  • We configure an expiry check for Origin CA certificates, since Cloudflare does not send expiration notifications for them.
  • We test renewal paths, including the HTTP-to-TXT validation fallback windows, before the work is accepted.

How we hand over

  • We document each hostname, its certificate type, its validity period and who owns its renewal and expiry alerts.
  • We record the steps for deploying a replacement Origin CA certificate to each origin server and reloading it.
  • We walk your team through the runbook for pausing proxying and the untrusted-certificate errors it can cause.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • We can review the setup again when your certificate lifetimes change, using the schedule your team confirms in the relevant CA/Browser Forum requirements.
  • Ask any provider to confirm in the quote which lifetime changes, origin servers and renewal tests are covered by the scope.

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.