Monitoring and renewal operations for a new private PKI

After a private CA move, the team that runs the PKI needs to watch expiry, failed renewals, issuance volume and CA health. This page covers what to monitor and how the documented renewal settings behave.

On this page

What to watch on a private PKI after the migration

The migration is done, and the team now runs issuance and renewal every day. The operating work comes down to four things: watching certificate expiry, catching failed renewals, tracking issuance volume and keeping CA health in view. The sources document specific metrics and renewal behavior for each, and this section names them so your monitoring can be built against the tool you actually run. This applies to teams running private CAs with automated renewal. The sources cover cert-manager, Smallstep step-ca, HashiCorp Vault PKI and RFC 9773, and they do not set a fixed schedule for any of them, so the timing you pick is a decision your team has to make and document.

For cert-manager, the controller exposes Prometheus metrics at /metrics on port 9402. The metrics certificate_expiration_timestamp_seconds, certificate_renewal_timestamp_seconds and certificate_ready_status cover expiry, scheduled renewal and readiness, labeled by name, namespace and issuer. Watch certmanager_venafi_oauth_token_requests_total for failures if you use a Venafi issuer. The documentation warns that setting renewBefore too close to duration can cause a renewal loop, because some issuers backdate notBefore, and recommends renewBeforePercentage instead. Use cmctl renew to test reissuance before you rely on it.

For step-ca, the cert-renewer@.timer template runs every 5 to 10 minutes with a randomized delay, so check that renewals fire on that cadence and that the dependent service reloads afterward. For Vault PKI, HashiCorp recommends enabling both CRL auto-rebuild and auto-tidy, since rebuilding a CRL is expensive because Vault reads every revoked certificate into memory. Vault's guidance also says that 500,000 or more stored unexpired certificates can degrade even large clusters, so track stored-certificate counts against that threshold. Tune the PKI mount so audit logs show accurate issuance, because with only a syslog audit device Vault can return an opaque 500 error. For ACME-based issuance, RFC 9773 lets the server publish a suggestedWindow that you can use to schedule renewals. Confirm your product's documentation for the exact field and setting names before you wire alerts to them.

Renewal and metric references the sources define

This table lists the specific metric names, renewal settings and limits that the sources define for the tools and standards named in each row. Each setting applies only to the tool or standard named in its row. If your private PKI runs other software, confirm the equivalent settings in that software's own documentation before relying on them.

Tool or standardSetting or metricWhat the source definesSource
cert-managerMetrics endpointController exposes Prometheus metrics at /metrics on port 9402cert-manager Prometheus metrics
cert-managercertificate_expiration_timestamp_seconds and certificate_renewal_timestamp_secondsLabels: name, namespace, issuer_name, issuer_kind, issuer_groupcert-manager metrics package
cert-managercertificate_ready_statusSame labels plus a condition labelcert-manager metrics package
cert-managerDefault renewal pointRenewal at about two thirds of certificate lifetime when renewBefore or renewBeforePercentage is not setcert-manager Certificate usage
cert-managerspec.renewBeforePercentageRecommended to prevent renewal loops; setting renewBefore close to duration can cause a loopcert-manager Certificate usage
cert-managerspec.renewal DisabledTurns automatic renewal off, but renewal still occurs at desiredRenewalTime if no valid window exists before expirycert-manager Certificate usage
Smallstep step-cacert-renewer@.timerRuns cert-renewer@.service every 5 to 10 minutes with a randomized delay, renewing after two thirds of lifetimeSmallstep step-ca renewal
Smallstep step-castep ca renew --expires-in with cronRenews only within the given duration; adds jitter of up to one twentieth of that durationSmallstep step-ca renewal
HashiCorp Vault PKIStored-certificate guidance10 to 1000 long-lived stored certificates probably fine; 50,000 to 100,000 become a problem; 500,000 or more can hurt large clustersHashiCorp Vault PKI considerations
HashiCorp Vault PKICRL auto-rebuild and auto-tidyBoth should be enabled; CRL rebuild is expensive because all revoked certificates are read into memoryHashiCorp Vault PKI considerations
RFC 9773 (ACME)suggestedWindowACME server publishes start and end timestamps for renewal, which a PKI team can use to schedule renewalsIETF RFC 9773

What monitoring changes for the team that runs the PKI

Moving to a new private PKI changes what the operations team watches and how it reads the signals. The cards below cover the consequences that tend to surprise teams: expiry becomes an alert condition, failed renewals stop being visible as outages, issuance load follows stored certificate counts, and audit records need configuration before they can be trusted.

Expiry becomes an alert condition

Under a short-lived model, the expiry date of a certificate stops being something a person checks and becomes a metric that an alerting system evaluates on every scrape. cert-manager exposes certificate_expiration_timestamp_seconds and certificate_renewal_timestamp_seconds with name, namespace and issuer labels, so the team can compare each certificate's expiry and scheduled renewal against the current time. Check that every issuer the team depends on appears in these series, and that alerts fire on the renewal timestamp passing without a new issuance rather than only on expiry itself.

cert-manager metrics package

Renewal failures appear as conditions

A failed renewal in a short-lived PKI usually does not produce an outage on day one, so it will not reach the team through a user complaint. cert-manager reports readiness through certificate_ready_status, which carries a condition label, so a certificate that stops being ready shows up as a time series the team can alert on. Set the alert window against the renewal schedule, not against expiry, so the team has time to act before the certificate lapses.

cert-manager Prometheus metrics

Issuance volume follows stored certificate counts

The number of certificates a PKI issues per day is driven by how many unexpired certificates it stores and how often they renew, so growth in stored certificates raises load even when nobody adds a new service. Vault's documentation places 10 to 1000 long-lived stored certificates as probably fine, while 500,000 or more stored unexpired certificates can affect even large clusters. Track the count of stored unexpired certificates as a capacity signal, and check whether automatic tidying is enabled so expired certificates do not accumulate.

Vault PKI considerations

Renewal timing needs a deliberate schedule

A renewal scheduled at a fixed point in the lifetime will generate the same load every time, so it can collide across many certificates. RFC 9773 lets an ACME server publish a suggested renewal window, and step-ca's renewer adds random jitter when run from cron, which spreads requests out. Confirm which of these the team's tooling honors, and check that renewBeforePercentage is set rather than renewBefore close to the full duration, since the cert-manager documentation warns that the latter can cause renewal loops.

RFC 9773

Audit logs need tuning before they can be read

Audit records for a PKI are only useful when they show the issuance activity accurately. Vault documents that PKI mounts must be tuned so audit logs give an accurate view of issuance, because HMAC hashing otherwise obscures the detail, and that with only a syslog audit device Vault can deny requests with an opaque 500 error. Before relying on audit data for monitoring or evidence, test a sample issuance and confirm the log entries show the fields the team needs, and check that a second audit device is configured.

Vault PKI considerations

How renewal timing and metrics behave as the sources describe them

Renewal timing is where a new private PKI most often surprises its operators, so the first thing to confirm is when each component actually tries to renew. In cert-manager, the controller sets status.RenewalTime to the moment renewal will be attempted. Without renewBefore or renewBeforePercentage, renewal happens at about two thirds of the certificate lifetime. The cert-manager documentation recommends setting spec.renewBeforePercentage to prevent renewal loops, and warns that setting renewBefore close to duration can cause a loop because some issuers backdate notBefore. Teams should check status.RenewalTime on each Certificate after the move, and use cmctl renew to test reissuance before relying on it. Be aware that spec.renewal can restrict renewal to cron-defined windows. Setting it to Disabled turns automatic renewal off, but if no valid window exists before expiry, cert-manager still renews at the calculated desiredRenewalTime. Confirm the exact field names and behavior for your cert-manager version in its documentation.

Smallstep's model is different: renewal runs on the client. The documented cert-renewer@.timer systemd template runs cert-renewer@.service every 5 to 10 minutes with a randomized delay, renews when more than two thirds of the lifetime has elapsed, and then reloads or restarts the dependent service. For renewals driven by cron, step ca renew --expires-in renews only when expiry falls within the given duration and adds random jitter of up to one twentieth of that duration. Operators should confirm that the timer is enabled on every host, that the dependent service actually reloads, and that the jitter still leaves each certificate renewed well before expiry. Failed renewals show up as certificates that stop being renewed, so alerting on the expiry metric is the reliable check.

Monitoring should cover both sides. cert-manager exposes Prometheus metrics at /metrics on port 9402, including certificate_expiration_timestamp_seconds, certificate_renewal_timestamp_seconds and certificate_ready_status, with labels that identify the Certificate and its issuer. On the CA side, HashiCorp's guidance says CRL rebuilds are expensive because Vault must read every revoked certificate into memory, so the cost of CRL generation grows with revocations. The Vault documentation says CRL auto-rebuild and auto-tidy should both be enabled, and that 50,000 to 100,000 stored certificates become a problem. Teams should track the count of stored and revoked certificates and CRL rebuild time as the PKI grows, and confirm the thresholds with HashiCorp's current documentation for their deployment.

How monitoring differs by tool and estate size

cert-manager runs as a controller in the cluster and publishes its state as Prometheus metrics, so most monitoring starts with scraping the controller. The controller exposes metrics at /metrics on port 9402, and the metrics package documents the certificate-level signals the team should alert on.

  • Expiry and renewal times: certificate_expiration_timestamp_seconds and certificate_renewal_timestamp_seconds show when each certificate expires and when renewal is scheduled, with labels for name, namespace and issuer.
  • Readiness: certificate_ready_status carries a condition label, so a certificate that is not ready shows up before it expires.
  • Renewal timing: Without renewBefore or renewBeforePercentage, renewal happens at about two thirds of the lifetime. The documentation recommends setting spec.renewBeforePercentage to prevent renewal loops, and warns that a renewBefore value close to duration can cause one because some issuers backdate notBefore.
  • Renewal windows: spec.renewal can restrict renewal to cron-defined windows. Setting it to Disabled turns automatic renewal off, but cert-manager still renews at the calculated desiredRenewalTime if no valid window exists before expiry.
  • Issuer and ACME calls: controller_sync_call_count and acme_client_request_count show controller activity and ACME request results, and certmanager_venafi_oauth_token_requests_total tracks token requests by status.

Check that alerts fire on expiry and not-ready conditions, and confirm the renewal settings for each issuer class in your own cluster.

How a certificate moves from issued to renewed or alerted

A certificate starts when the PKI issues it, and cert-manager sets status.RenewalTime to the point renewal will be attempted. Without renewBefore or renewBeforePercentage, that point falls at about two thirds of the lifetime. At that point the controller requests a new certificate through the issuer. On success, certificate_expiration_timestamp_seconds and certificate_renewal_timestamp_seconds update. On failure, certificate_ready_status shows the problem, and that condition is what the on-call alert should watch. Check the issuer's own metrics as well, since the renewal path depends on them.

The renewal loop from issuance to either an updated expiry or an alert.

What to set up, in order, after the PKI goes live

Once the new private PKI issues certificates, this sequence gives the team visibility into expiry, renewal failures and CA health before the first certificates come due. Each step produces a concrete artifact, such as a list of metrics, an alert, a tuned setting or a verified test renewal, so the team can confirm the PKI is being watched.

  1. Inventory the metrics and logs each issuer exposes

    The operations or PKI engineer lists every issuer and renewal component in use and records which metrics or logs each one exposes. For cert-manager, the controller serves Prometheus metrics at /metrics on port 9402, including the certificate expiration and renewal timestamps and the certificate ready status, each labeled by certificate, namespace and issuer. For step-ca, check its documentation for available metrics and logging options. The step is done when the team has a written list mapping each issuer to its metric endpoints or log sources, and confirms that each endpoint is reachable from the monitoring system.

  2. Set expiry and failed-renewal alerts

    The monitoring owner builds alerts from the inventory in the previous step. Use the certificate expiration timestamp metric to alert before expiry, and the certificate ready status metric to flag certificates that are not ready. Add an alert on the cert-manager Venafi OAuth token request counter for failure results if that issuer is in use. Set the alert thresholds with the PKI team, because the right warning window depends on how far ahead renewals are scheduled. The step is done when a test alert fires in the monitoring system, is routed to a named on-call channel, and the team has reviewed the thresholds.

  3. Confirm renewal timing settings to avoid loops

    The PKI engineer reviews each certificate's renewal configuration. cert-manager documentation recommends setting renewBeforePercentage to prevent renewal loops, and warns that a renewBefore value close to the certificate duration can cause a loop, because some issuers backdate notBefore. Without renewBefore or renewBeforePercentage, cert-manager renews at about two thirds of the lifetime. If renewal windows are restricted with the renewal policy, confirm that a valid window exists before expiry, since cert-manager still renews at the calculated time when none does. For step-ca, confirm the renewer timer and the expires-in threshold. The step is done when a written list of renewal settings per issuer has been reviewed and no certificate is set to renew at a point that conflicts with its backdating behavior.

  4. Enable Vault CRL auto-rebuild and auto-tidy

    Where Vault is the PKI backend, the Vault administrator enables both CRL auto-rebuild and auto-tidy on the PKI mount. HashiCorp documents both as recommended for compatibility with the wider PKIX ecosystem and for cluster performance. Rebuilding a CRL is expensive because Vault reads all revoked certificates into memory, so the team should also check the stored certificate count against Vault's guidance, which describes 50,000 to 100,000 stored certificates as a potential problem and 500,000 or more as a risk to even large clusters. The step is done when the mount configuration shows both settings enabled and the team has recorded the current stored certificate count.

  5. Tune the PKI audit mount for accurate issuance counts

    The Vault administrator configures the PKI audit path so that issuance counts in audit logs are accurate. Vault notes that HMAC on audit entries means PKI mounts need tuning to get an accurate view of issuance. The administrator also checks the audit devices in use: with only a syslog audit device, Vault can deny requests with an opaque 500 Internal Error, so the team should confirm a second device or a suitable configuration is in place. The step is done when a test issuance appears in the audit log with the expected count and the team has confirmed that no requests return an unexplained 500 error during the check.

  6. Run a test renewal with cmctl or step

    The operations engineer runs a controlled test renewal for one certificate per issuer. For cert-manager, use cmctl renew to trigger reissuance of a named certificate. For step-ca, use step ca renew, adding the expires-in option where the team wants renewal only when expiry is near. Watch the expiration and renewal timestamp metrics and the ready status during the test, and confirm that the alerts from the earlier step did not fire unexpectedly. The step is done when the renewed certificate is served by the workload, the metrics reflect the new expiry, and the test result is recorded with the command used, the certificate name and the timestamp.

What drives the monitoring effort

The effort to watch a new private PKI depends less on the CA software than on how many certificates it holds, how many systems renew without help, and whether signals reach people who act on them. Each driver below is something to measure before you size the team.

Certificate volume in storage

Count the long-lived and unexpired certificates the CA stores, not just the ones issued this month. HashiCorp's Vault guidance says 10 to 1000 long-lived stored certificates are probably fine, that 50,000 to 100,000 become a problem, and that 500,000 or more stored unexpired certificates can hurt even large clusters. Compare your own count against those bands, and plan CRL rebuild and tidy jobs around the volume you actually hold.

Vault PKI considerations

Number of issuers and tools

Each issuer, such as an internal CA, an ACME client or a platform integration, adds its own logs, metrics and failure modes. Inventory every issuer that signs for your environment and note which tool renews each certificate. A team watching three issuers through one dashboard has a different load than one watching a dozen separate tools.

Systems without automated renewal

Every system that renews by hand is a manual task with an expiry date attached. Count these separately from automated systems, because they set most of the expiry risk. Check which of them can be moved to an automated client and which must stay manual, and give manual renewals a named owner and a calendar reminder earlier than the automated ones.

Metrics reaching central alerting

Confirm that expiry, renewal and issuance-failure metrics leave each component and reach the alerting system your on-call team reads. cert-manager exposes Prometheus metrics at /metrics on port 9402, including certificate expiration and renewal timestamps and a ready-status signal. Test one failed renewal end to end so you know the alert fires before a certificate expires.

cert-manager metrics

Named owner for each alert

An alert with no owner is noise. Map every expiry, failed renewal and CA health alert to one person or on-call rotation, and record who receives it outside working hours. Review the mapping whenever a team changes or a system is added. Keep the owner list with the runbook so an auditor or a new hire can see who acts on which signal.

What to record so an auditor can see the PKI is watched

An auditor reviewing a private PKI will want proof that someone is watching it, and that proof is a set of records rather than a description of intent. Start with alert rules and their owners: for each rule that fires on certificate expiry, failed renewal or issuer health, keep the rule definition, the threshold it uses, the person or team that receives the alert, and the date the rule was last reviewed. Metric endpoints and scrape configuration belong in the same file set, because a dashboard that nobody can show scraping the right targets is weak evidence. In cert-manager, the controller exposes metrics at /metrics on port 9402, and the metrics package documents certificate_expiration_timestamp_seconds, certificate_renewal_timestamp_seconds and certificate_ready_status as the series an expiry check would read. Confirm the scrape configuration against your own deployment and keep a copy of it.

Renewal settings and test renewal results make the monitoring testable. For each issuer, record the renewal policy in use: whether spec.renewBeforePercentage or spec.renewBefore is set, whether spec.renewal restricts renewal to cron windows, and what the issuer's notBefore backdating behavior is, since the cert-manager documentation warns that renewing too close to duration can cause a loop when issuers backdate. Keep the output of test renewals, such as runs triggered with cmctl renew, showing the before and after expiry and the time taken. For Vault, record whether CRL auto-rebuild and auto-tidy are enabled, and keep audit log configuration showing that the PKI mount is tuned so issuance appears accurately in the log. Ask your auditor which of these records they expect and how long they must be retained, because neither NIST SP 800-57 Part 1 Revision 5 nor RFC 3647 prescribes a specific log format. NIST SP 800-57 gives general key management guidance, and RFC 3647 lists topics a certificate policy or practice statement may address, so use them to check that your records cover key lifecycle and policy topics, not as a list of required files.

Questions teams ask about monitoring a private PKI

What should we alert on first after moving to a new private PKI?

Start with certificate expiry and renewal failures, because those are the events that cause outages. Track the expiration timestamp of each certificate, the renewal timestamp, and whether each certificate reports a ready status. In cert-manager, these appear as certificate_expiration_timestamp_seconds, certificate_renewal_timestamp_seconds and certificate_ready_status, labeled by name, namespace and issuer. Next, watch the controller's own health with controller_sync_call_count, and for Vault-backed issuance, watch failed token requests. Confirm the exact metric names and label values in your version's documentation before you build dashboards, since names can change between releases.

Why does our certificate renewal keep looping?

A renewal loop usually means the renewal window is set too close to the certificate's full duration. The cert-manager documentation recommends spec.renewBeforePercentage to prevent loops, and warns that setting renewBefore close to duration can cause one, because some issuers backdate notBefore, so a freshly issued certificate already looks due for renewal. Check the issued certificate's validity start and end, and compare them with your renewal settings. If you need to test a fix, cmctl renew can trigger reissuance on demand. Confirm the behavior for your issuer and version.

Do the CA/Browser Forum lifetime limits apply to our private PKI?

The Baseline Requirements lifetime limits apply to publicly trusted TLS server certificates, not to certificates from a private CA, unless a specific source says otherwise. Version 2.3.2 of the Baseline Requirements sets the maximum subscriber certificate validity at 200 days from 15 March 2026, 100 days from 15 March 2027 and 47 days from 15 March 2029, and defines short-lived subscriber certificates as those valid for 7 days (604,800 seconds) or less when issued on or after 15 March 2026. Your private PKI sets its own lifetimes through its certificate policy. Confirm your policy and scope with your compliance team, and check the Baseline Requirements text directly for the exact definitions.

What does the suggestedWindow field in RFC 9773 do?

RFC 9773 lets an ACME server publish a suggestedWindow containing start and end timestamps, which indicates when the server suggests the client renew. A PKI team can use it to schedule renewals in a predictable period rather than renewing at an arbitrary time. The field is advisory: the client decides whether to follow it, and your ACME client must support the extension for it to have any effect. Check your ACME server and client documentation to confirm support before relying on the window for operations.

Why do our Vault audit logs show counts that look wrong?

Vault PKI mounts must be tuned to get an accurate view of issuance in audit logs, because audit values are HMAC-protected and so are not directly readable. Without that tuning, issuance counts can look inconsistent when you read them. The Vault documentation also says that with only a syslog audit device configured, Vault can deny requests with an opaque 500 Internal Error, so check that your audit devices are set up correctly. Review the Vault PKI considerations page and your audit configuration before you trust the counts for capacity or compliance reporting.

What should we ask a CA vendor about metrics before we sign?

Ask which metrics the product exposes, in what format, and on which endpoint and port, so your monitoring can scrape them without guesswork. Ask for the full list of issuance, expiry, renewal and failure metrics, the labels each one carries, and whether those labels let you group by issuer and namespace. Ask how the product handles CRL rebuilds and whether auto-rebuild and auto-tidy are supported and documented, since the Vault documentation notes that rebuilding a CRL is expensive. Ask for documented scale limits on stored certificates, and get written answers so you can compare vendors on the same basis.

Can we run private PKI monitoring ourselves, or do we need outside help?

Many teams run this in-house once they have the metrics, alerts and runbooks in place, and the work is mostly configuration and ongoing review. Outside help is most useful when you need the dashboards, alert rules and renewal settings designed and tested against your own platforms, or when you need a fixed scope and documented handover. DeployOpen plans, implements and documents self-hosted platforms inside your own infrastructure, and sets up the monitoring and renewal operations for an internal PKI as a fixed-scope engagement. A quote depends on the written scope, which includes how many issuers and platforms are in play.

When to bring in help with PKI operations

Some monitoring gaps are small enough for an internal team to close: one issuer, one platform, and metrics already flowing into a dashboard. Bring in outside help when the operation spans many issuers across mixed platforms, when no one has a central view of expiry or issuance, or when renewals keep failing and nobody can say why. Other signals are a Vault or AD CS deployment that has never been tuned for its issuance volume, and a pending assessment that will ask for evidence the team cannot yet produce. Outside help is most useful when the problem sits across several of these at once, because the fixes depend on how the issuers, renewal jobs and audit logs interact.

For a first scoping call, bring four things. The first is a complete issuer list: each CA or intermediate, where it runs, which certificate templates or profiles it issues from, and who owns it. The second is current metrics: whether cert-manager's Prometheus endpoint, the certificate_expiration_timestamp_seconds and certificate_ready_status series, or equivalent data from other issuers is being collected, and what the dashboards show today. The third is renewal settings: the renewBefore or renewBeforePercentage values, any spec.renewal windows, and the step ca renew or systemd timer configuration in use. The fourth is the list of systems that cannot be automated, such as appliances, legacy hosts or devices with manual install steps, together with the reason for each.

Also note which audit logs are in place for the PKI, including whether Vault's audit device is configured in a way that records issuance accurately, and whether a CRL or revocation process is in use. If none of this exists yet, say so plainly on the call. The scoping answer will then cover the gap-closing work and the evidence to prepare, and it can be written into a fixed-scope proposal before any implementation starts. Confirm current behavior against each product's own documentation for the versions you run.

How DeployOpen helps run and monitor a private PKI

DeployOpen works with your platform and PKI teams to define which signals matter after a private CA move: issuance volume, expiry, failed renewals and CA health. We build the monitoring and renewal jobs, test them against your own failure cases, and hand over runbooks your team can operate.

How we scope

  • We inventory which issuers, renewal agents and clients your private PKI serves, and which ones you need to watch.
  • Scope is agreed in writing before work starts, naming the metrics, dashboards, alerts and renewal paths covered.
  • We confirm which renewal settings your platforms use, such as renewal windows, renewBeforePercentage and expiry thresholds.

How we build

  • We configure metrics scraping and dashboards for the certificate controllers and renewal tooling you actually run.
  • We set alerts on expiry timestamps, failed renewals and issuer errors, tuned to avoid renewal loops and noisy paging.
  • We test renewal failure paths, including a CA outage and a rejected renewal request, and record how each one behaves.

How we hand over

  • We deliver runbooks for each alert, covering who responds, what to check and how to reissue a certificate manually.
  • We document the CA capacity and audit-log settings your team should review on a regular schedule.
  • We walk your operations team through the dashboards and a live renewal test before the engagement closes.

How we support

  • Ongoing support, upgrades and continuous monitoring review are available as a retainer after handover.
  • We can retest alerts and renewal paths after platform upgrades, new issuers or changes to renewal policy.
  • Confirm with your vendors which metrics, endpoints and renewal features your exact product versions support.

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.