Join our Newsletter — 33% off our NHI Course
Home› Guides› Machine Identity, PKI and Certificate Lifecycle Guide
Guide Non-Human Identity (NHI)

Machine Identity, PKI and Certificate Lifecycle Guide

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 24 October 2026 15 min read
On this page

Certificates are machine identities: they prove which server, service, device, workload or code signer is on the other end. For years many organisations managed them in spreadsheets and calendar reminders, renewing once a year and occasionally suffering an outage when one expired. That approach is ending. The maximum lifetime of public TLS certificates fell to 200 days in March 2026 and will reach 47 days in 2029, internal workload identity systems such as SPIFFE are built around short-lived certificates, and the move to post-quantum cryptography means every certificate and key will eventually need replacing. This guide explains certificate-based machine identity, the lifecycle, the changes under way, and how to build, monitor and measure automated certificate lifecycle management. It is written for PKI owners, platform and SRE teams, NHI programme leads and security architects.

Key takeaways

  • The public schedule is already biting. Under CA/Browser Forum ballot SC-081v3, public TLS certificates issued from 15 March 2026 may last at most 200 days, falling to 100 days from 15 March 2027 and 47 days from 15 March 2029, when domain validation reuse also drops to 10 days.
  • Manual renewal stops being viable. A continuously used certificate will need eight or more renewals a year by 2029; ACME (RFC 8555) and its renewal information extension (RFC 9773) are the practical route.
  • Most certificates are internal. Private CAs issue certificates for services, devices, workloads and agents; they need the same inventory, ownership and automation as public ones, and can go much shorter.
  • Private and signing keys are the real secrets. The Microsoft Storm-0558 Key Breach 2023 showed what one stolen signing key can do; protect keys in hardware and rotate them automatically.
  • Inventory now for post-quantum. NIST plans to deprecate and remove quantum-vulnerable algorithms from its standards by 2035; you cannot migrate certificates and keys you cannot find.

How certificates act as machine identity

An X.509 certificate, profiled for the internet in RFC 5280, binds a public key to an identity such as a domain name, service name or SPIFFE ID, and is signed by a certificate authority (CA) that relying parties trust. The holder proves its identity by using the matching private key, for example in a TLS handshake. Anyone can copy the certificate; only the holder of the private key can use it, which is why key protection matters more than certificate secrecy.

UseTypical issuerWhat it identifiesAutomation route
Public websites and APIsPublic CADomain names, increasingly IP addressesACME clients, cloud load balancer integrations
Internal service-to-service mutual TLSPrivate CA or service mesh CAService or workloadMesh control plane, Kubernetes certificate controllers
Workload identitySPIFFE implementationSPIFFE ID in an X.509 SVIDWorkload API, automatic rotation
Device and IoT client authenticationPrivate CA, sometimes manufacturer CADeviceEnrolment protocols, MDM
OAuth client authentication and bound tokensPrivate or public CAOAuth client (RFC 8705 mutual TLS)Same as service certificates
Code and container signingPublic code signing CA or internal signing servicePublisher or build pipelineSigning service with keys in HSM
SSH certificatesSSH CAUser, host or automation accountShort-lived issuance per session

SPIFFE describes itself as open-source standards for identifying software systems, built around "short lived cryptographic identity documents" called SVIDs. See the Workload Identity Federation Guide, the Service Mesh Security Guide and the NHI Authentication Guide.

The certificate lifecycle

StageWhat happensWhat goes wrongControl
RequestGenerate a key pair where it will be used and a certificate signing requestKeys generated centrally and emailed or copiedGenerate on the endpoint or in an HSM; never export
Validate and issueCA checks the requester is entitled to the identityTeams buy certificates outside approved CAsApproved CA list, CAA records for public domains
DeployInstall on the endpoint, load balancer, mesh or deviceSame certificate and key copied to many systemsOne certificate per service; automated deployment
MonitorTrack expiry, configuration, algorithm and locationUnknown certificates, silent automation failuresInventory fed by discovery, CA logs and CT
RenewReplace before expiry, ideally with a new keyRenewal reuses an old or exposed keyRenew with a new key at a randomised point in the window
RevokeInvalidate if the key is compromised or the identity endsRevocation not checked by clientsShort lifetimes; tested revocation for high-value identities
RetireRemove from endpoints, trust stores and inventoryOld certificates and CAs left trustedDecommission step in the service lifecycle

The same lifecycle applies to every machine identity. See the NHI Lifecycle Management Guide and the Cryptographic Key Management Guide.

The shrinking lifetime of public certificates

The CA/Browser Forum sets the Baseline Requirements for publicly trusted TLS certificates. Ballot SC-081v3 passed in April 2025 with 25 certificate issuers in favour, none against and five abstaining, and all four certificate consumers (Apple, Google, Microsoft and Mozilla) in favour. The schedule, now in section 6.3.2 and section 4.2.1 of the Baseline Requirements:

Issued on or afterMaximum validityDomain and IP validation reuseRenewals a year for a certificate in continuous use
Before 15 March 2026398 days398 daysAbout one
15 March 2026 (in force)200 days200 daysAt least two
15 March 2027100 days100 daysAt least four
15 March 202947 days10 daysEight or more

Reuse of other validated subject information falls from 825 to 398 days from 15 March 2026. The ballot's rationale is that a certificate is a point-in-time statement that grows less accurate as it ages, and that "Certificate status services, such as CRLs and OCSP, are technologies which do not adequately protect relying parties at the current scale of the internet". Shorter lifetimes protect users whether or not revocation works.

Some CAs are going further. Let's Encrypt announced six-day certificates, generally available from January 2026, which carry no OCSP or CRL URLs at all, and it switched off its OCSP responders in August 2025 in favour of CRLs, citing the privacy cost of OCSP. Any client software that still depends on OCSP for public certificates needs checking. The 10-day domain validation reuse limit from 2029 also means DNS and HTTP validation must be automated, not just the certificate request.

Common failure patterns

  • Expiry outages: a forgotten certificate expires and takes down a service or partner integration. Shorter lifetimes make this weekly risk rather than an annual one unless renewal is automated and monitored.
  • Unknown certificates: certificates issued by teams directly from public CAs or internal CAs outside central visibility, with no owner when they fail.
  • Private key exposure: keys stored in code, shared file systems, container images or backups. In the ASP.NET Machine Key Attacks 2025, Microsoft found more than 3,000 publicly disclosed machine keys copied from documentation and repositories, one used to deliver the Godzilla framework.
  • Signing keys left active: in the Storm-0558 case a 2016 consumer signing key that should have been retired in 2021 was still valid; manual rotation had stopped after an outage, according to the CSRB as reported by BleepingComputer.
  • Code signing keys within reach of production: after the AnyDesk Breach 2024, AnyDesk revoked its code signing certificate; Akamai advised that earlier versions were signed with the revoked certificate.
  • One certificate, many tenants: in the Mimecast Certificate Compromise 2021, a certificate Mimecast issued so its products could connect to customers' Microsoft 365 Exchange services was stolen and used against a small number of tenants.
  • Wildcard certificates shared across many systems, so one compromised server exposes the key for all of them.
  • Trust store sprawl: outdated, test or unnecessary CAs trusted by applications, containers and devices long after they were needed.

Building certificate lifecycle management

1. Discover and inventory

  • Scan networks, cloud load balancers, Kubernetes secrets and service meshes for certificates; import CA issuance records and Certificate Transparency (CT) log entries for your domains. RFC 9162 describes CT as allowing anyone to "audit certification authority (CA) activity and notice the issuance of suspect certificates".
  • Inventory internal CAs, trust stores, SSH CAs, code signing keys and token signing keys, including those in Active Directory Certificate Services.
  • Record owner, application, location, issuer, expiry, key algorithm, key size and key storage for each certificate.

2. Assign ownership and policy

  • Every certificate has an owning team; certificates without owners are investigated, not left to expire. See the NHI Ownership Guide.
  • Define approved CAs, algorithms, key sizes, maximum lifetimes and key storage requirements, aligned with NIST SP 800-57 key management guidance.
  • Restrict wildcard certificates and require separate certificates per service; publish CAA records naming the CAs allowed to issue for your domains.

3. Automate issuance and renewal

  • Use ACME (RFC 8555) with public and internal CAs wherever supported, and native integrations for cloud load balancers, Kubernetes certificate controllers and service meshes.
  • Support ACME Renewal Information (RFC 9773), which lets a CA suggest a renewal window; the RFC notes a CA can use it to ask clients to renew "prior to a mass-revocation event".
  • Renew well before expiry at a randomised time, generate a new key at each renewal, and alert when automation fails rather than when the certificate expires.

4. Protect private keys

  • Generate keys on the endpoint and keep them there; avoid exporting them.
  • Use hardware security modules or cloud key management for CA keys, code signing keys, token signing keys and other high-value keys, with separate administration from production.
  • Never store private keys in source code, images or shared storage; scan for them. See the Secrets Management Guide.

5. Go short-lived internally

Internal PKI does not have to follow public CA timelines. SPIFFE is built around short-lived identity documents delivered through a workload API, and service meshes rotate workload certificates automatically, so a stolen key has little value and revocation matters less. The Baseline Requirements now define a "Short-lived Subscriber Certificate" as one valid for seven days or less when issued from 15 March 2026; internal workloads can go shorter still.

6. Plan for revocation

Revocation checking is unreliable in many clients, which the SC-081v3 rationale itself acknowledges, and is another reason to prefer short lifetimes. For high-value identities such as client certificates for partners and administrators, test that revocation actually stops access, and keep a runbook for mass replacement if a CA or key is compromised. For Microsoft PKI specifically, see the Active Directory Certificate Services (AD CS) Security Guide.

Workload, device and AI agent certificates

Certificates are increasingly the identity behind non-human actors that are not servers at all. Kubernetes workloads, IoT fleets, CI/CD runners and AI agent runtimes all need to prove what they are to the services they call.

  • Workloads: issue identity at start-up through the platform (SPIFFE, mesh or cloud workload identity) rather than baking certificates into images. See the Kubernetes NHI Security Guide.
  • Devices: plan for devices that cannot renew easily; long-lived device certificates need hardware key storage and a tested replacement path. See the Device and IoT Identity Guide.
  • AI agents: an agent runtime that calls tools and APIs should present a workload certificate or federated token unique to that agent, not a shared client certificate or a long-lived key in its configuration. Mutual TLS with certificate-bound tokens (RFC 8705) means a stolen access token is useless without the key. See the AI Infrastructure Workload Identity Guide.

Detection and monitoring

  • Expiry and renewal failures: alert on failed automated renewals and on any certificate inside its final third of life, not only at seven days.
  • Unexpected issuance: monitor CT logs for certificates issued for your domains by CAs you do not use, or for names you did not request.
  • Key reuse and weak keys: flag certificates renewed with the same key, deprecated algorithms or short RSA keys.
  • Private keys in the wrong place: secret scanning of repositories, images and file shares for PEM and PFX material.
  • Signing key use: log every code signing and token signing operation, with an owner who reviews unexpected volume or callers.
  • Trust store changes: detect new CAs added to system, container and application trust stores.

Framework mapping

This is an indicative NHI Mgmt Group alignment, not an official crosswalk. Control IDs were checked against NIST CSF 2.0, the NIST SP 800-53 Rev. 5 control list, the CIS Controls v8.1 control list and the OWASP NHI Top 10 (2025); ISO/IEC 27001:2022 Annex A numbers and names come from a published Annex A index.

RequirementNIST CSF 2.0NIST SP 800-53 Rev. 5ISO/IEC 27001:2022 Annex ACIS Controls v8.1OWASP NHI Top 10
Certificate, CA and key inventoryID.AM-02, ID.AM-08CM-8, SC-12A.5.9 Inventory of information and other associated assets1, 2 (enterprise and software asset inventory)NHI1
Machine authentication with certificatesPR.AA-01, PR.AA-03IA-3, IA-9, IA-5(2)A.8.5 Secure authentication6 Access Control ManagementNHI4
Key generation, storage and protectionPR.DS-01SC-12, SC-12(3), SC-13A.8.24 Use of cryptography3 Data ProtectionNHI2
TLS for data in transitPR.DS-02SC-8, SC-17A.8.243-
Lifetimes, renewal and rotationPR.AA-01IA-5, SC-17A.5.17 Authentication information4 Secure ConfigurationNHI7
Trust store managementPR.PS-01IA-5(14), CM-6A.8.9 Configuration management4-
Monitoring expiry, issuance and key useDE.CM-09SI-4, AU-6A.8.16 Monitoring activities8 Audit Log Management-
Crypto agility and PQC migrationPR.PS-02SC-13A.8.244-

Metrics that show progress

MetricWhat it showsTarget direction
Certificates in inventory with a named ownerAccountabilityUp, to 100%
Certificates renewed automaticallyReadiness for 100-day and 47-day lifetimesUp, to 100% of public certificates before March 2027
Certificates discovered that were not in inventoryBlind spotsDown
Expiry-related incidents per quarterOperational reliabilityDown, to zero
Renewals that generated a new keyKey hygieneUp, to 100%
High-value keys (CA, signing) in HSM or KMSProtection of the most powerful keysUp, to 100%
Median lifetime of internal workload certificatesProgress to short-lived identityDown
Certificates and keys using quantum-vulnerable algorithms with a migration planPQC readinessUp

Implementation roadmap

PhaseActionsExit criteria
First 30 daysDiscover public certificates through CT and scanning; list internal CAs, trust stores and signing keys; assign owners to the top business services; alert on certificates nearing expiryOwned inventory of public certificates; no unknown expiries in the next 90 days
Days 31 to 90Move public certificates to ACME or platform-managed renewal; automate domain validation; set policy for CAs, algorithms, lifetimes and key storage; move CA and signing keys into HSM or KMSMost public certificates renewing without people; signing keys in hardware
Days 91 to 180Extend automation to internal PKI; introduce short-lived workload certificates through SPIFFE or the mesh; clean trust stores; add CT and key-reuse monitoringAll public certificates automated ahead of the 100-day limit in March 2027
After 180 daysBuild the cryptographic inventory for PQC; test mass replacement; plan hybrid and post-quantum certificates as CA and library support arrivesDocumented crypto-agility plan with owners and dates

Preparing for post-quantum cryptography

NIST published its first three post-quantum standards in August 2024: FIPS 203 (ML-KEM) for key establishment, and FIPS 204 (ML-DSA) and FIPS 205 (SLH-DSA) for digital signatures, with SLH-DSA intended as a backup to ML-DSA. NIST's mathematician Dustin Moody urged administrators to "start integrating them into their systems immediately, because full integration will take time". Under the transition timeline in draft NIST IR 8547, NIST says it "will deprecate and ultimately remove quantum-vulnerable algorithms from its standards by 2035, with high-risk systems transitioning much earlier". Organisations should:

  • Build a cryptographic inventory, starting from the certificate and key inventory above.
  • Prioritise long-lived secrets, long-lived device certificates and data that must stay confidential for many years.
  • Make PKI and applications crypto-agile, able to change algorithms without redesign; shorter certificate lifetimes help, because every renewal is a chance to change algorithm.
  • Track CA, browser and library support for post-quantum and hybrid certificates before committing to dates.

See the Post-Quantum Cryptography Migration Guide and the Post-Quantum Readiness Guide.

Practitioner checklist

  • Inventory all public and internal certificates, CAs, trust stores and signing keys, with owners.
  • Set policy for CAs, algorithms, key sizes, lifetimes and key storage, and publish CAA records.
  • Automate issuance, renewal and domain validation with ACME and platform integrations before March 2027.
  • Support ACME Renewal Information so CAs can bring renewals forward.
  • Generate new keys on renewal and keep private keys on the endpoint or in HSM or KMS.
  • Put CA, code signing and token signing keys in hardware, out of reach of production compromise.
  • Use short-lived certificates for internal workload and agent identity.
  • Remove dependence on OCSP where public CAs have dropped it.
  • Monitor renewal failures, CT logs, key reuse and trust store changes.
  • Rehearse mass certificate replacement after a CA or key compromise.
  • Start a post-quantum readiness plan based on your cryptographic inventory.

Standards and references

Related NHI Mgmt Group resources: NHI Authentication Guide · Cryptographic Key Management Guide · Secrets Management Guide · Ultimate Guide to Non-Human Identities

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 24 October 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick the PDF box to continue.