Automate certificate renewal on Istio and service mesh workloads

Istio rotates workload certificates on its own through istiod, so renewal is largely automatic once the CA is set up correctly. Shorter public certificate lifetimes change what you must automate at the edge, where ingress certificates come from cert-manager or an ACME issuer.

On this page

How Istio renews service mesh workload certificates automatically

If you run Istio, the certificates that carry service-to-service traffic inside the mesh already renew themselves. The istio-agent in each pod generates a private key and certificate signing request, sends it to istiod, and receives a signed certificate that Envoy uses through the SDS API. The agent watches the expiration of that workload certificate and repeats the process periodically, so the rotation is automated at scale without manual steps. The part that needs your attention is the public edge certificate on the istio-ingressgateway, because that certificate is issued by a public certificate authority and is subject to the shorter lifetimes. Automating that certificate is a separate task from the mesh's own rotation.

The 200-day, 100-day and 47-day limits in the CA/Browser Forum Baseline Requirements apply to publicly trusted subscriber certificates, which covers your ingress gateway's public hostnames. They do not change the internal mesh identities that istiod issues, which are rotated by the agents on their own schedule. The first limit took effect on 15 March 2026 and the 100-day limit is set for 15 March 2027, so the edge certificate is the one that will need renewal far more often than it does today. Platform engineers who own the gateway and the public DNS names should own this work, with security or PKI staff confirming which certificate authority issues the edge certificate and what lifetime it uses.

For the edge, cert-manager needs no special changes. You create a Certificate in the namespace of the istio-ingressgateway deployment, usually istio-system, and set the Gateway's tls credentialName to the Certificate's secretName. If you use an ACME issuer, confirm that the HTTP endpoint for the challenge path is reachable on the domain and that the Gateway's hosts entry matches a DNS name on the certificate. Before you rely on the automation, check the renewal window your cert-manager version uses and confirm it leaves room before expiry as lifetimes shrink.

What the shorter lifetimes change for Istio edge certificates

This table compares the three Baseline Requirements dates against what each one means for the public certificate on the Istio ingress gateway. Read each row for how often the certificate must be renewed, how often domain validation must be repeated, and which manual steps stop being workable. Mesh workload certificates issued inside the cluster are not public certificates, so they are not governed by these dates.

DateMaximum certificate validityIngress gateway certificate impact
From 15 March 2026200 days, with domain and IP validation reuse up to 200 days and subject identity reuse up to 398 daysAbout 2 renewals per year. Manual renewal every few months is still possible but calendar tracking becomes error-prone across many hostnames.
From 15 March 2027100 days, with domain and IP validation reuse up to 100 daysAbout 4 renewals per year. Renewal by hand on a calendar stops being reliable, so automated issuance and renewal at the gateway should be in place.
From 15 March 202947 days, with domain and IP validation reuse up to 10 daysAbout 8 renewals per year, and domain validation must be repeated roughly every 10 days. Manual renewal no longer works, so the full ACME or CA-integrated flow must run without human steps.
Mesh workload certificatesNot public certificates, so the Baseline Requirements dates do not apply to themIstio's istiod or cert-manager's istio-csr rotates these internally, so the schedule changes the edge certificate only. Confirm the lifetime your mesh CA issues in its own configuration.

How Istio issues and rotates workload certificates

Istio issues workload certificates automatically, and each pod handles its own certificate lifecycle. The istio-agent running in every pod generates a private key and a certificate signing request, then sends the request to istiod. istiod's certificate authority validates the workload's credentials and signs the request. The agent then passes the resulting certificate and key to Envoy over the Secret Discovery Service (SDS) API, so the application proxy never handles key material through a file on disk that the team has to manage. Before a platform team changes anything, it should confirm which CA istiod is using, because that determines where workload certificates come from and how their lifetimes are set.

Rotation is driven by the agent, not by a cron job or an operator. According to the Istio security concepts documentation, the agent watches the expiration of the workload certificate and repeats the key and CSR process periodically, which rotates both the key and the certificate. The documentation describes this as the mechanism that lets istiod and the agents automate rotation at scale. For a platform team, the practical checks are to confirm that agents are running and healthy in every namespace in scope, and that certificate rotation is happening in practice, for example by inspecting the certificates Envoy holds in a test workload after a change. The exact commands and metrics to use depend on the Istio version, so confirm them against the documentation for the release in use.

The edge is handled differently from workload identity. Public certificates for the ingress gateway are not issued by istiod. Instead, a cert-manager Certificate is created in the namespace of the istio-ingressgateway deployment, usually istio-system, and its secretName names a Secret that cert-manager populates. The Istio Gateway then references that Secret through the credentialName field in its tls block. Because cert-manager renews the Secret in place, the gateway picks up the new certificate without a manual step, but the team should verify this on its own cluster after the first renewal. Keep the edge certificate lifetime and renewal settings in mind alongside the mesh workload rotation, since the two run on separate schedules.

Which CA option fits your Istio mesh

The built-in option is the default. Each pod's istio-agent generates a private key and certificate signing request, sends it to istiod, and istiod's CA validates the credentials and signs it. Envoy then receives the certificate and key from the agent over the SDS API. The agent watches the workload certificate expiration and repeats the process periodically, so rotation is handled without manual steps. This option needs no extra components and no external CA, which makes it the simplest to start with.

  • No extra components: istiod acts as the signing CA, so you do not deploy cert-manager or supply a root certificate.
  • Automatic rotation: the istio-agent in each pod rotates the key and certificate on its own schedule.
  • Limited root control: the root is managed inside the mesh, so it does not fit teams that must hold the root offline or chain to an existing internal CA.
  • Workload identities only: these certificates cover mesh workloads and are separate from public certificates at the edge.

Before you rely on this option, confirm in the Istio documentation how the built-in root is generated and stored in your installation, and check whether it satisfies your internal CA policy.

Set up automated edge certificates on Istio with cert-manager

This sequence gives the Istio ingress gateway a public certificate that cert-manager issues and renews on its own schedule. The gateway reads the certificate from a Secret, so renewal happens without manual copying. Each step ends with a check you can run before moving on.

  1. Install cert-manager with Helm

    Platform engineers install cert-manager into the cluster using the Helm command for chart version v1.21.3, which creates the cert-manager namespace and enables the CRDs. The command is run from a machine with cluster access and the Helm client installed. You know the step is complete when the cert-manager, cert-manager-cainjector and cert-manager-webhook pods are running in the cert-manager namespace and the Certificate, Issuer and ClusterIssuer resource types are available in the cluster. Check the cert-manager releases page for the Kubernetes and OpenShift versions this release supports before you install.

  2. Create the ACME Issuer

    Create an Issuer resource in the istio-system namespace that points at the ACME server you use. Set the email field to a monitored address, the server field to the ACME directory URL, and privateKeySecretRef to the name of the Secret that will hold the ACME account key. Under solvers, configure an http01 solver, because the HTTP challenge path is what the gateway will expose. You know the step is complete when the Issuer shows a Ready condition in its status. If it does not, read the Issuer's events, which usually point to an unreachable server or a rejected account registration. Confirm the directory URL and solver options against the cert-manager ACME configuration documentation.

  3. Define the Certificate in istio-system

    Create a Certificate resource in the istio-system namespace, the same namespace as the istio-ingressgateway deployment. Set spec.secretName to the Secret name the gateway will read, list every public DNS name the gateway serves under spec.dnsNames, and reference the Issuer from the previous step. Set spec.duration to the lifetime you want cert-manager to request, and set spec.renewBeforePercentage rather than spec.renewBefore, because the cert-manager docs recommend it to avoid renewal loops when an issuer returns a shorter certificate than requested. Keep spec.duration at or above one hour and keep the effective renewBefore above five minutes, as the documentation requires. You know the step is complete when the Certificate reports Ready and the named Secret exists in istio-system with tls.crt and tls.key entries.

  4. Point the Gateway at the certificate Secret

    Edit the Istio Gateway resource so its tls block sets credentialName to the same value as the Certificate's spec.secretName. Istio reads the certificate from that Secret, so the gateway does not need restarting for each renewal once the reference is in place. Make sure the servers entry lists hosts that match DNS names on the certificate, because a host with no matching name will fail the TLS handshake. You know the step is complete when the gateway serves the new certificate, which you can verify by inspecting the presented certificate's subject and issuer from an external client.

  5. Check the HTTP challenge path and hosts

    Confirm that the HTTP endpoint /.well-known/acme-challenge/<TOKEN> on each domain can be reached from the public internet through the gateway. The gateway must route that path to the solver that cert-manager creates, so check that DNS for each name resolves to the gateway address and that no other route captures the path. Then compare the Gateway hosts entries with the dnsNames list in the Certificate, because a mismatch means a validated name may not be served on the listener. You know the step is complete when a test request to the challenge path on each host returns a response from the solver rather than a 404 or a redirect to HTTPS that blocks validation. Confirm the exact routing requirements in the Istio cert-manager integration page for your Istio version.

  6. Verify renewal behavior before relying on it

    Read the Certificate's status and its notAfter and renewal timestamps, and confirm that renewal is scheduled for the window implied by spec.renewBeforePercentage. Check that the cert-manager controller logs show no repeated failures for the order. If you run cert-manager 1.21 and want the server's renewal guidance, you can enable the ACMEUseARI feature gate, which the release notes describe as experimental. You know the step is complete when the Certificate reports the expected notAfter date and the next renewal time, and when no order errors appear in the logs. Plan a test renewal in a non-production environment before you depend on the automation for a live gateway.

  7. Decide whether istio-csr is needed

    Only consider istio-csr for workload identities, not for the edge gateway that serves public certificates. istio-csr replaces Istio's built-in CA by setting ENABLE_CA_SERVER to false in Istio and pointing caAddress at the istio-csr service, and its docs recommend starting with an Issuer rather than a ClusterIssuer and statically specifying the root CA. The ACME issuer does not work for it, because Istio places SPIFFE IDs in subjectAltName. Install istio-csr before Istio, because the documentation says installing it after Istio is unsupported. You know the decision is complete when you have confirmed whether your mesh needs workload identity rotation through cert-manager or whether Istio's default CA meets your requirements.

What must be in place before automating Istio certificates

Istio mesh certificates and public edge certificates are managed by different paths, so each needs its own setup before renewal can run unattended. The cards below cover the cert-manager and istio-csr versions to match, the issuer and validation requirements, and the storage and permissions that the automation depends on.

Match cert-manager to your cluster

Pick a cert-manager release that supports both your Kubernetes version and your OpenShift version, if you run OpenShift. The releases page lists 1.21 as supporting Kubernetes 1.33 to 1.36 and OpenShift 4.20 to 4.22, and 1.20 as supporting Kubernetes 1.32 to 1.35 and OpenShift 4.19 to 4.21. Confirm the support matrix on the day you install, because the page expects a 1.22 release around November 2026.

cert-manager releases

Pair istio-csr with the Istio version

Ambient mode needs istio-csr v0.12.0 or later, and Istio 1.24 and newer need istio-csr v0.13.0 or later. Check the pairing before you upgrade either side, because a mismatched istio-csr will not manage the workload certificates Istio requests. Installing istio-csr after Istio is not supported, so plan the order of installation from the start.

istio-csr installation guide

Use an issuer that accepts SPIFFE IDs

Istio places SPIFFE IDs in the subjectAltName field of workload certificates, so the issuer behind istio-csr must accept arbitrary subjectAltName values. The istio-csr page states that the ACME issuer will not work for this role. Start with an Issuer rather than a ClusterIssuer, and statically specify the root CA to reduce the risk of signer hijacking.

istio-csr overview

Reach the domains for public edge certificates

Public certificates at the Istio ingress gateway use a separate path from mesh certificates. For ACME issuers, the HTTP endpoint at /.well-known/acme-challenge/<TOKEN> on each domain must be reachable from the internet, so check routing and firewall rules before you rely on HTTP-01. The Gateway hosts entry must also match a DNS name on the certificate.

Istio cert-manager integration

Confirm DNS names for DNS-01 solvers

If your ACME solver uses DNS-01 rather than HTTP-01, the DNS zone must be writable by the issuer and the names on the certificate must resolve in that zone. Check that the solver credentials are stored in a Secret the issuer can read, and that they cover every domain listed on the Gateway. Record which zone each hostname belongs to before you configure the solver.

Store keys and grant namespace access

The ACME account key lives in the Secret named by privateKeySecretRef, and the Certificate's output Secret, such as the one named by the Gateway credentialName, must be created in the namespace of the istio-ingressgateway deployment, usually istio-system. Give cert-manager and the gateway only the permissions they need in those namespaces, and confirm that caTrustedNodeAccounts includes istio-system/ztunnel when Ambient mode is in use.

How Istio and cert-manager renew edge and workload certificates

The diagram starts with cert-manager requesting the public gateway certificate from an ACME certificate authority through an Issuer, then storing the result in a Secret that the Istio ingress gateway loads for the Gateway's tls credentialName. Workload certificates follow a separate path: each pod's istio-agent sends a CSR to istiod, which signs it through its own CA or through istio-csr backed by a cert-manager issuer. Check that the ACME challenge path is reachable, that the Gateway hosts match the certificate DNS names, and that the istio-csr issuer accepts SPIFFE IDs in subjectAltName, since the ACME issuer cannot do that.

Edge certificates reach the gateway through a Secret, while workload certificates are signed by istiod or istio-csr.

How to confirm Istio certificate renewals keep happening

Automated rotation only helps if you can see it happening. Start with the cert-manager side of the setup. A Certificate resource reports its state in its status conditions, and kubectl get certificate -n istio-system followed by kubectl describe certificate <name> -n istio-system shows whether the most recent issuance succeeded, the notAfter expiry, and the renewalTime cert-manager has scheduled. By default cert-manager renews at two thirds of the lifetime, which leaves one third of the lifetime as margin. If you set spec.renewBefore or spec.renewBeforePercentage, confirm the values you see in the status match what you intended. Recording the renewalTime from each check gives you a baseline to compare against on later checks.

Next, watch for the events that show renewal actually ran. cert-manager writes events on the Certificate and its CertificateRequest objects when a request is created, approved, issued or fails, and kubectl get events -n istio-system --field-selector involvedObject.kind=Certificate lists them. If you run istio-csr, check its logs as well, since it is the component that receives workload certificate requests from Istio. Alerts should fire on a failed request, on a Certificate that stays in a not-ready state past its renewal time, and on any gap between the scheduled renewal and the new notAfter value. Confirm alert routing with a test event rather than assuming it works.

The gateway itself needs its own check, because cert-manager can report success while istio-ingressgateway keeps serving the old certificate. Compare the expiry of the certificate the gateway presents on its port 443 listener with the notAfter value in the Secret named by the Gateway's credentialName. A simple openssl s_client connection to the gateway's address, piped to openssl x509 -noout -enddate, shows what clients actually receive. Keep the output of these checks, together with the Certificate status history and event logs, as dated records of issuance and renewal. Those records are the evidence an auditor or customer reviewer will ask for, so store them where they survive cluster rebuilds, and confirm the retention period with your compliance owner.

Questions people ask about Istio certificate renewal

Does Istio renew workload certificates automatically?

Yes. In Istio, the istio-agent in each pod generates a private key and certificate signing request, sends it to istiod, and receives a signed certificate that it passes to Envoy over the SDS API. The Istio security concepts page says the agent watches the workload certificate expiration and repeats this process periodically, which rotates the key and certificate. Your job is to confirm the rotation is working on your cluster: check that workloads keep receiving fresh certificates, and check the Istio documentation for the settings and commands that show certificate status in your version. If you plug in your own CA, the rotation still runs, but the CA behind it must stay healthy.

Can ACME issue Istio workload identities?

No. The cert-manager istio-csr page says the ACME issuer will not work for Istio workload identities. Istio places SPIFFE IDs in the subjectAltName field, so the issuer must accept arbitrary subjectAltName values. Teams that want cert-manager to handle workload certificates typically use istio-csr with a CA-type Issuer instead. Public ACME certificates still apply at the edge, where the ingress gateway terminates TLS for external hostnames. Keep those two uses separate in your design.

How often do edge certificates renew with cert-manager's default settings?

By default, cert-manager sets a Certificate's duration to 90 days and renews it at two thirds of its lifetime, which leaves one third before expiry. For a 90-day certificate that means renewal starts around day 60. The lifetime of public certificates is shrinking, so check the actual duration of the certificates you issue, since the CA may issue shorter ones. The cert-manager Certificate documentation describes spec.renewBefore and spec.renewBeforePercentage for changing the renewal window. The docs recommend renewBeforePercentage so that renewal does not loop when the issued duration is shorter than requested. Confirm the values in your own version's documentation.

What happens when certificate renewal fails?

Renewal failure is the main risk to watch. A renewal that fails before the old certificate expires leaves the current certificate in service until it runs out, so you have a window to act. The sources do not describe the exact alerts or recovery steps for each failure, so check your cert-manager version's documentation and the logs of the cert-manager and istio-csr pods. Set monitoring on certificate expiry and on renewal status before you rely on automation. Ask your team to test a forced renewal in a non-production cluster so the response is known before an incident.

Do wildcard or internal service names work with this setup?

For public edge certificates, the ACME route handles hostnames that the gateway serves. For ACME at an Istio gateway, the HTTP challenge endpoint must be reachable on the domain, and the Gateway hosts entry must match a DNS name on the certificate. The sources do not state whether wildcard names are supported by a given issuer or challenge method, so confirm that with your CA and cert-manager version before you plan for them. Internal workload identities use SPIFFE IDs in the subjectAltName field, and the issuer behind istio-csr must accept those values. Check that your chosen issuer meets this requirement.

When should we bring in outside help?

Bring in help when the design involves a custom CA, a private root, or a mix of public and workload certificates that must renew together. The Istio plug-in CA documentation says its demo steps are for demonstration only and that production setups should use a production-ready CA with the root CA kept offline, so a production CA design is a good point to get help. Outside help also fits cases where the cert-manager release, the Istio version and the Ambient mode requirements have to line up. DeployOpen plans and implements these setups inside your own infrastructure, with the scope and deliverables agreed in writing before work begins. Ask for a written scope that names the versions, the issuers and the monitoring you will receive.

How DeployOpen works on this

DeployOpen plans and implements Istio certificate automation inside your own clusters, covering how istiod or istio-csr issues workload certificates and how public certificates are renewed at the ingress gateway. Each engagement is scoped in writing before work starts, so the CA design, renewal settings and handover are agreed with your platform and security teams first.

How we scope

  • Confirm which Istio version and mode you run, including whether Ambient mode is in use, since istio-csr version requirements depend on it.
  • Decide whether istiod keeps its built-in CA or whether an external CA is plugged in through the cacerts Secret or istio-csr.
  • Map which public certificates sit at the istio-ingressgateway and which issuer, such as an ACME issuer, each one uses.

How we build

  • Install cert-manager and istio-csr, setting ENABLE_CA_SERVER to false and pointing caAddress at istio-csr where that path is chosen.
  • Configure Issuers that accept arbitrary subjectAltName values for SPIFFE IDs, statically specifying the root CA to reduce signer hijacking risk.
  • Set Certificate renewal windows at the gateway and test that the Gateway credentialName matches the Certificate secretName.

How we hand over

  • Document the chosen CA path, issuer configuration and the Helm values or Secret names that control workload and edge certificates.
  • Provide renewal and rotation test results, showing that workload certificates and gateway certificates rotate without manual steps.
  • Record the checks your team runs after each Istio or cert-manager upgrade, including the istio-csr compatibility matrix for your versions.

How we support

  • Ongoing support and upgrades for Istio, cert-manager and istio-csr are available as a retainer after handover.
  • Retests after changes to the CA, the root certificate or the ztunnel CRL setting, with fixes and a written summary.
  • Engagements are fixed-scope, so any change to the CA design or gateway setup is agreed in writing before it is made.

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.