Automate certificate renewal on Kubernetes with cert-manager

cert-manager can issue and renew certificates for Kubernetes workloads and ingress from ACME issuers, so renewal runs without manual steps as public lifetimes shorten. This page covers installation, issuers, renewal settings, validation and what to monitor.

On this page

How does cert-manager renew Kubernetes certificates automatically?

cert-manager renews certificates by reissuing them from a configured Issuer or ClusterIssuer. For public certificates, the Issuer is typically an ACME Issuer that completes validation with the http01 or dns01 solver. Public certificate lifetimes are shrinking: the CA/Browser Forum Baseline Requirements cap subscriber certificate validity at 200 days from 15 March 2026, at 100 days from 15 March 2027 and at 47 days from 15 March 2029. At those lifetimes, renewal has to run without hand work, so each Certificate's renewal path needs to be checked before the cap takes effect.

Platform teams running the clusters own the cert-manager installation, the Issuers and ClusterIssuers, the DNS or HTTP validation path, and the upgrade schedule for cert-manager itself. Owners of the workloads and ingress that consume the certificates own the Certificate resources that name their hosts and the reload behavior of what reads the resulting Secret. The two groups need to agree on who watches renewal failures, since a failed renewal may surface first as an expiring certificate in a workload rather than as an error in the platform.

The default certificate duration in cert-manager is 90 days, and by default it renews at two thirds of the lifetime, which leaves one third before expiry. Those defaults do not fit a 47-day certificate. Each Certificate that will be issued under a short-lived profile needs an explicit spec.duration and a spec.renewBeforePercentage or spec.renewBefore setting, and the docs recommend renewBeforePercentage so that renewal still works if the issued duration is shorter than the one requested. Duration strings use Go format with h, m or s suffixes and do not accept d, so 90 days is written 2160h. Teams should confirm the chosen values against the ACME server's issued lifetime before relying on them.

Before cutover, review each Issuer's server, privateKeySecretRef and solver configuration, and check that the ACME server's directory supports any profile you set. If you set the profile field, which requires cert-manager 1.18.0 or later, an unsupported profile produces an error on the CertificateRequest, so check the directory for a profiles field first. Also keep the ACME account key Secret backed up, because the cert-manager docs warn that certificates issued under an account whose key is lost cannot be revoked. Use cmctl status certificate <name> -n <namespace> to trace a renewal through the Certificate, CertificateRequest, Order and Challenges.

What the shorter lifetimes change for cert-manager clusters

This table compares each Baseline Requirements step, with its maximum certificate lifetime and validation reuse period, against what it means for renewals in a cert-manager cluster. Read each row as a stage to plan for, since the renewal frequency and the window in which a failed manual renewal leaves services without a valid certificate both shrink as the schedule advances.

DateMaximum certificate validityValidation reuseWhat it means on a cluster
From 15 March 2026200 days200 daysRenewals occur roughly every 130 to 200 days under cert-manager's default two-thirds renewal point, and a domain check can be reused for as long as the certificate lifetime. If renewal fails and nobody intervenes by hand, certificates expire within a few months rather than a year.
From 15 March 2027100 days100 daysRenewals become roughly twice as frequent as at the 200-day step, and a domain check stays valid for at most 100 days before it must be repeated. Manual renewal failures leave less slack, so ACME challenge and DNS configuration problems surface sooner.
From 15 March 202947 days10 daysCertificates renew on a monthly-or-faster cadence, and domain validation must be repeated every 10 days, so ACME challenges (HTTP-01 or DNS-01) must succeed on a routine basis. If renewal fails by hand, workloads and ingress lose valid certificates within weeks, so automated renewal and alerting on failures become required rather than optional.

How cert-manager issues and renews certificates in a cluster

Automated renewal on Kubernetes with cert-manager depends on a chain of resources that you should be able to trace before you trust it. You create a Certificate resource that names the certificate's DNS names, its requested spec.duration and the Issuer or ClusterIssuer that should sign it. cert-manager then creates a CertificateRequest for that issuer. For an ACME issuer, the request leads to an ACME Order and one or more Challenges, which prove control of each domain. When the challenges pass, the issued certificate and its private key are written to a Kubernetes Secret whose name is set in the Certificate (spec.secretName). Ingress controllers and workloads read that Secret, so renewal succeeds only if the Secret is updated and the consumer picks up the new material. Confirm that your ingress or application reloads the Secret contents, since cert-manager does not restart them for you.

Renewal is driven by the lifetime of the certificate. By default, cert-manager renews a certificate at two thirds of its lifetime, leaving one third before expiry. Your Certificate can instead set spec.renewBefore as an absolute lead time or spec.renewBeforePercentage as a share of the actual duration. The docs recommend renewBeforePercentage so that renewal does not loop when the issued duration is shorter than requested. Duration strings use Go format with s, m or h suffixes, so a 90-day certificate is written 2160h. For ACME certificates, cert-manager 1.21 adds experimental support for ACME Renewal Information (RFC 9773) behind the ACMEUseARI feature gate, under which cert-manager queries the ACME server's renewal info endpoint for a recommended renewal window. Confirm whether your CA publishes renewal information before you enable the gate, and test it in a non-production cluster first.

Use cmctl status certificate <name> -n <namespace> to see the Certificate, its CertificateRequest, the Secret, the Issuer and, for ACME, the Order and Challenges in one view when a renewal stalls. The cmctl renew <certificate-name> command forces reissuance for testing. Check the cert-manager release you run against the cert-manager releases page, because version support changes, and review the cert-manager Certificate usage documentation for the exact renewal fields in your version.

Which issuer and solver options does cert-manager support?

The HTTP-01 solver proves control of a domain by having the ACME server fetch a token from a public HTTP endpoint on that domain. cert-manager creates the challenge resources and serves the token through a temporary solver pod and ingress path, so the domain must resolve to a cluster address that the ACME server can reach over port 80. The option suits clusters with public ingress and no DNS API access, but it cannot issue wildcard certificates.

  • Network requirement: The ACME server must reach the challenge path on port 80 from the public internet, so private or internal-only ingress will not validate.
  • Ingress integration: cert-manager adds a temporary route for the challenge, which depends on the ingress class configured in the solver.
  • Wildcards: HTTP-01 cannot prove control of a wildcard name, so wildcard certificates need DNS-01.
  • Self-check: cert-manager checks the challenge before asking the ACME server to validate, and the waitInsteadOfSelfCheck option from cert-manager 1.21.0 skips that check and waits a set duration instead, with 0 permitted.
  • Renewal: Renewal repeats the same validation, so the challenge path must stay reachable for every renewal cycle.

Before relying on this solver, confirm that the challenge path is reachable from outside your network and check the solver settings in the cert-manager ACME configuration documentation for your release.

Install cert-manager and configure renewal in order

This sequence installs cert-manager with its CRDs, defines an ACME Issuer that holds the account key and proves domain control, and declares a Certificate with a lifetime and renewal lead time. The result is a Secret that cert-manager keeps current without manual reissuance.

  1. Install cert-manager with Helm

    The platform team runs the Helm install command from the cert-manager Helm documentation, which pulls chart v1.21.3 from the Jetstack OCI registry into a new cert-manager namespace and sets crds.enabled=true so the custom resource definitions are installed with the chart. Confirm the install by checking that the cert-manager, cainjector and webhook pods reach a Running state in that namespace before continuing. Check the releases page for the Kubernetes and OpenShift versions this chart supports before installing on an older or newer cluster.

  2. Create the ACME account key and issuer

    Define an Issuer or ClusterIssuer that uses the ACME type and sets the email address for account contact, the server field set to the ACME directory URL of the certificate authority you have chosen, and privateKeySecretRef naming the Secret where cert-manager stores the account key. Apply the manifest and check the Issuer status for a Ready condition, which shows the account registered with the ACME server. Store the account key Secret where you can back it up, because the cert-manager documentation warns that if this account key is lost, certificates issued under that ACME account cannot be revoked.

  3. Choose and configure the validation solver

    Add a solvers list to the ACME Issuer and select http01 when the hostname resolves to a cluster ingress that cert-manager can serve challenges through, or dns01 when you need wildcards or the endpoint is not publicly reachable over HTTP. For dns01, pick one of the supported providers listed on the cert-manager DNS-01 page and confirm that the provider's maintainers test it, since the docs state that community webhook providers are not tested or endorsed by the maintainers. If your DNS uses CNAME delegation for _acme-challenge records, the solver's cnameStrategy must be set to Follow, because the default does not follow CNAMEs. Verify the choice by requesting a test certificate from a staging ACME server before pointing production at it.

  4. Set the certificate lifetime in Go duration format

    In the Certificate resource, set spec.duration using a Go duration string with h, m or s suffixes, because the d suffix is not accepted, so a 90-day lifetime is written as 2160h. Note that spec.duration defaults to 90 days if you leave it out. Keep the requested lifetime within the limit your certificate authority will issue, and plan for the CA/Browser Forum schedule that reduces maximum public subscriber certificate validity to 200 days from 15 March 2026, 100 days from 15 March 2027 and 47 days from 15 March 2029. Ask your issuing authority which durations it accepts before you rely on a specific value.

  5. Set the renewal lead time

    Add either spec.renewBeforePercentage or spec.renewBefore to control when cert-manager renews. The cert-manager documentation recommends renewBeforePercentage because it avoids renewal loops when the issued duration is shorter than requested, and by default cert-manager renews at two thirds of the lifetime. The docs require a duration of at least 1 hour, an effective renewBefore of at least 5 minutes and a duration greater than renewBefore, so check these values against your manifest before applying it. For strict renewal timing, the spec.renewal.windows field can restrict renewal to a cron-defined window, but if no valid window exists before expiry, cert-manager renews at the calculated time anyway.

  6. Deploy the Certificate and confirm the Secret

    Apply the Certificate resource with a secretName, the issuerRef pointing at your Issuer, the dnsNames your workloads serve and the duration and renewal settings from the previous steps. Cert-manager creates a CertificateRequest and, for ACME, an Order and Challenges, which it works through until the certificate is issued. Confirm the Certificate shows Ready and that the Secret named in secretName exists in the same namespace and contains the certificate and key. Run cmctl status certificate <name> -n <namespace> to view the Certificate, CertificateRequest, Secret, Issuer and any ACME Order and Challenges in one output.

  7. Test renewal before relying on it

    Force a reissue with cmctl renew <certificate-name> in the target namespace to confirm that the full issuance path works again and that the Secret updates, or use cmctl renew --namespace=<namespace> --all to cover every Certificate in a namespace. Check the cmctl status output again to confirm the new CertificateRequest and Secret version. If a Certificate fails, read the status on the CertificateRequest, since the docs note that an unsupported ACME profile is reported there, and check the server directory for supported profiles. This check tells you the renewal path works before the first automatic renewal occurs.

What has to be in place before cert-manager can renew

cert-manager renews a certificate only when the cluster, the release, the network path to the ACME server and the account key are all ready before the first renewal is due. Each item below is a dependency that fails quietly if it is missing, so check them before you rely on automatic renewal.

A supported cert-manager release

Install a release that the cert-manager releases page lists as supported. At the time that page was read on 4 December 2026, the supported releases were 1.20 and 1.21, with 1.21 supporting Kubernetes 1.33 to 1.36 and OpenShift 4.20 to 4.22, and 1.20 supporting Kubernetes 1.32 to 1.35 and OpenShift 4.19 to 4.21. Confirm your cluster version against the current table before you pick a release, because the expected 1.22 release may change the list. Install with the Helm chart and set crds.enabled=true so the CRDs are managed with the chart.

Releases page

Network reachability for http01 or DNS access for dns01

An http01 solver needs the ACME server to reach a challenge endpoint on port 80 of the domain, so the ingress path must be open to the public internet. A dns01 solver needs an API credential that can create TXT records in the zone, and it works for wildcard names and for hosts that are not publicly reachable. Decide which solver fits each domain before you write the Issuer, because the choice decides which network and credentials you must provision.

DNS delegation for CNAME following

By default cert-manager does not follow CNAME records for DNS-01 challenges. If your challenge records live in another zone, set cnameStrategy: Follow in the dns01 solver section, which accepts None and Follow, and create a CNAME from _acme-challenge.<domain> to a name in the zone that holds the TXT records. Delegation adds a record you must maintain and a zone with its own access control, so document both before you depend on it. Check the DNS01 page for the provider you use, since the maintainers do not test or endorse the community webhook providers.

DNS01 docs

RBAC to create Issuers and Secrets

The service account that manages certificates needs permission to create and read Issuers, Certificates and the Secrets that hold issued keys and the ACME account key. Grant these rights in the namespace where each Issuer runs, and keep them narrow, because a Secret read grants access to a private key. Test the permissions with a dry run before you apply the Issuer, so you find a denied request before renewal fails in production.

A secure store for the ACME account key

The ACME Issuer reads its account key from a Secret named in privateKeySecretRef. If that key is lost, the docs warn that certificates issued under the account cannot be revoked, so the key needs backup and access control outside the cluster's normal lifecycle. Restrict who can read the Secret, keep an offline copy, and record which account owns which Issuer. Plan this before the first issuance, not after an incident.

ACME configuration

Common questions about cert-manager renewal

Does cert-manager support ACME and wildcard certificate names?

Yes, cert-manager's ACME Issuer obtains certificates from ACME servers using either the http01 or dns01 solver. Wildcard names require the dns01 solver, since the http01 method cannot prove control of a wildcard. The dns01 page lists ACMEDNS, Akamai, AzureDNS, CloudFlare, Google, Route53, DigitalOcean and RFC2136 as supported providers. The maintainers say they do not test, review or endorse community webhook providers, so check that a provider fits your environment before relying on it. By default cert-manager does not follow CNAME records for DNS-01. Setting cnameStrategy: Follow in the dns01 solver enables delegation from _acme-challenge.<domain> to another zone. Confirm the exact solver fields for your cert-manager version in the ACME configuration documentation.

How do I force a certificate renewal with cmctl?

Run cmctl renew <certificate-name> -n <namespace> to force cert-manager to reissue a single Certificate, even if it is not yet due. This is useful after a change to issuers, solvers or key settings, or when you want to test the renewal path before the scheduled date. To see what happened afterwards, run cmctl status certificate <name> -n <namespace>. The output shows the Certificate, its CertificateRequest, the Secret, the Issuer and, for ACME, the Order and Challenges. Check that the Secret's certificate has a new expiry date. Confirm the exact flags for your cmctl version with cmctl renew --help.

How do I renew every certificate in a namespace at once?

Run cmctl renew --namespace=<namespace> --all to renew every Certificate in the named namespace. This is useful when an issuer or shared configuration changes and many workloads need new certificates together. Renewing all certificates at once can trigger a burst of ACME requests, so check your CA's rate limits before running it in a large namespace. Stagger the work across namespaces if you run many certificates. After the run, use cmctl status certificate on a sample of Certificates to confirm each one reached Ready. Then check that the workloads reading those Secrets reloaded the new files.

What is the default certificate lifetime and when does cert-manager renew it?

By default, spec.duration for a Certificate is 90 days. cert-manager renews at two thirds of the lifetime, which leaves one third of the lifetime before expiry. For a 90-day certificate, that means renewal begins around day 60. You can set spec.renewBefore as an absolute lead time, or spec.renewBeforePercentage as a share of the actual duration. The documentation recommends renewBeforePercentage, because it avoids renewal loops when the issued duration is shorter than requested. Duration strings use Go format with s, m or h suffixes, and the d suffix is not allowed, so 90 days is written as 2160h. Confirm the defaults for your cert-manager version in the Certificate usage documentation.

Can cert-manager issue 47-day certificates, and how do I configure them?

The CA/Browser Forum Baseline Requirements set a 47-day maximum subscriber certificate validity from 15 March 2029. Before that date the schedule steps down through 200 days from 15 March 2026 and 100 days from 15 March 2027. To request a shorter lifetime, set spec.duration on the Certificate and keep renewal well inside it, for example with renewBeforePercentage. Whether a given CA issues the shorter lifetime depends on that CA, so check its policy and the ACME profile options. The cert-manager ACME Issuer has a profile field from version 1.18.0 that selects an ACME certificate profile, and omitting it uses the server default. Confirm what your CA accepts before setting the duration.

What happens if a certificate renewal fails?

When renewal fails, cert-manager records the error on the CertificateRequest or Order and retries with backoff. The Certificate keeps serving its current Secret until it expires, so a failure does not take effect immediately. Run cmctl status certificate <name> -n <namespace> to see which resource holds the error. Common causes are a solver that cannot publish the challenge, an ACME server rejecting a profile, or an issuer whose account key is no longer valid. If you set a profile the ACME server does not support, cert-manager reports an error on the CertificateRequest, and the documentation says to check the server directory for a profiles field. From version 1.21, the --certificate-request-maximum-backoff-duration flag caps retry backoff, and it defaults to 32 hours. Set alerts on certificate expiry so a failure gets noticed before the current certificate runs out.

When should we bring in outside help for cert-manager renewal?

Consider outside help when renewals fail in a way your team cannot trace with cmctl, when you are moving to shorter lifetimes across many clusters, or when you need the setup reviewed before an audit. Other good reasons include a planned change of ACME provider, a private ACME server that needs a caBundle, or an account key stored in a Secret that you cannot rebuild. The ACME documentation warns that if the privateKeySecretRef account key is lost, certificates issued under that account cannot be revoked, so treat that Secret as critical. DeployOpen plans and implements cert-manager setups inside your own infrastructure and can document the renewal process and test it. Scope and timelines are agreed in writing before work starts, and DeployOpen does not publish a price list.

How to confirm cert-manager renewals keep happening

Once cert-manager is issuing certificates, the question that matters is whether it keeps renewing them before they expire. Renewal health is checked with cmctl, which reports the state of each link in the chain: the Certificate, its CertificateRequest, the Secret that holds the key pair, the Issuer, and, for ACME issuers, the Order and Challenges. Run cmctl status certificate <name> -n <namespace> for each Certificate that matters, and look for a CertificateRequest that is stuck, failed or missing, an Order or Challenge that never completes, and a Secret whose expiry date is not moving forward after a renewal. The same check should run after any change to issuers, DNS providers or ingress settings, since those are the points where renewals most often stop.

To test the path without waiting for expiry, use cmctl renew <certificate-name> to force reissuance of one Certificate, or cmctl renew --namespace=<namespace> --all to renew every Certificate in a namespace. Test in a non-production namespace first, then confirm with cmctl status that the new CertificateRequest succeeded and the Secret was updated. The sources do not name a built-in alerting setting for expiry, so set expiry alerts in your own monitoring against the Secret or the certificate itself, and check the cert-manager documentation for the metrics it exposes before you build dashboards on them. Note that cert-manager 1.21 adds a webhook that detects missed renewals after a system suspend or VM live migration, so confirm the version you run in the cert-manager 1.21 release notes.

Keep a dated record of every issuance and renewal, including the Certificate name, namespace, issuer, serial or expiry date, and the time of each renewal. Auditors and customer security reviews tend to ask for this evidence, and a record kept from the start is far easier to produce than one reconstructed later. Export cmctl status output or the relevant Secret metadata on a schedule and store it with your change records. Where the lifetime of your certificates is shrinking under the CA/Browser Forum schedule, the record also shows whether renewals are happening at the intervals you planned.

How the cert-manager issuance and renewal flow works

The flow starts with a Certificate resource, which points to an Issuer and hands the request to a CertificateRequest. For ACME issuers, cert-manager then creates an Order and one Challenge per name, which are validated over http01 or dns01. The issued certificate is stored in a Secret, which the ingress or workload reads, and cert-manager renews it at the calculated point before expiry. Check the Certificate's status and events if a renewal stalls, since cmctl status certificate shows each object in the chain.

The cert-manager chain from Certificate to Secret, with the renewal loop back to the Certificate.

How DeployOpen helps teams automate cert-manager renewal

DeployOpen plans and builds cert-manager setups on Kubernetes clusters inside the client's own infrastructure, covering issuers, Certificate resources, renewal settings and the handover to the platform team. Each engagement starts from a written scope so the issuers, workloads and renewal behavior to be automated are agreed before work begins.

How we scope

  • Inventory which workloads and ingress resources need certificates and which issuer each one should use.
  • Confirm the cert-manager release and Kubernetes version the cluster runs, and check it against the supported releases list.
  • Agree in writing whether ACME issuers, private issuers or both are in scope, and which DNS-01 or HTTP-01 solvers apply.

How we build

  • Install cert-manager with Helm using the chart version the release documentation names for the target cluster.
  • Define ACME Issuers with account key Secrets, solver configuration and, where needed, the profile field for the target server.
  • Set Certificate renewal policy and windows, then test renewals against the 200-day, 100-day and 47-day schedule the client plans for.

How we hand over

  • Document each issuer, its account key storage and the steps needed to recover it if the Secret is lost.
  • Show the platform team how to use cmctl to check Certificate status and force reissuance during testing and incidents.
  • Deliver runbooks covering renewal failures, CertificateRequest errors and the ACME challenge steps for each solver in use.

How we support

  • Engagements are fixed-scope, with scope and deliverables agreed in writing before work starts.
  • Ongoing support, cert-manager upgrades and continuous renewal testing are available as a retainer.
  • Ask any quote to state which issuers, workloads and clusters it covers and which upgrades are included.

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.