DuoKey
Resources
Article

Machine Identity Management and Certificate Lifecycle Management (CLM): 2026 Guide

Machine identity management and certificate lifecycle management explained: identity types, MIM vs IAM, CLM stages, discovery and best practices.

DuoKey Team··24 min read

Machine identity management (MIM) is the discipline of discovering, issuing, rotating and revoking the credentials that non-human actors use to prove who they are: TLS and client certificates, cryptographic keys, SSH keys, code signing certificates, and the identities of workloads, devices and AI agents. Certificate lifecycle management (CLM) is its largest part: the practice of discovering, owning, issuing, deploying, monitoring, renewing, revoking and retiring every digital certificate an organisation uses, with as much of that cycle automated as possible.

Certificates rarely fail because the cryptography breaks. They fail because nobody knew a certificate existed, nobody owned it, or nobody renewed it in time.

Two changes make this more pressing in 2026. Publicly trusted TLS certificates are now capped at 200 days and will drop to 100 days in March 2027 and 47 days in March 2029, so manual renewal stops scaling. And the move to post-quantum cryptography means every certificate and key will eventually be reissued with new algorithms, which is only practical if you already know where they all are. This guide covers machine identity management first (what it includes, how it differs from IAM, best practices), then certificate lifecycle management in detail: lifecycle stages, expiry outages, automation protocols, discovery, a tool checklist and a 90-day rollout plan.


Table of Contents

  1. What Is Machine Identity Management?
  2. What Counts as a Machine Identity
  3. Machine Identity Management vs IAM
  4. Why Machine Identity Management Matters
  5. Machine Identity Management Best Practices
  6. What Is Certificate Lifecycle Management?
  7. The Certificate Lifecycle Stages and What Goes Wrong
  8. Why Certificate Expiry Outages Happen
  9. Shrinking Certificate Lifetimes and SC-081
  10. Automation Protocols: ACME, EST, SCEP and CMP
  11. Certificate Discovery: Finding Every Certificate
  12. CLM and Machine Identity Tool Checklist
  13. Machine Identity Beyond TLS
  14. A 90-Day CLM Rollout Plan
  15. How DuoKey Supports Machine Identity and Certificate Lifecycle Management
  16. FAQ

What Is Machine Identity Management?

A human proves who they are with a password, a passkey or a smart card. A machine does it with a credential: a certificate and its private key, an SSH key, a signing key, a token. Machine identity management is the set of processes and tools that keep those credentials known, owned, short-lived where possible, protected and revocable.

It has four core activities, which mirror the lifecycle of any credential:

ActivityWhat it coversTypical tooling
Discovery and inventoryFind every certificate, key and machine credential, with owner, location, algorithm and expiryNetwork and host scanners, cloud KMS and key vault APIs, CA exports
Issuance and provisioningIssue credentials under policy, ideally generated where they are used or inside an HSM or vaultPrivate and public CAs, enrollment protocols (ACME, EST, SCEP, CMP), SSH CA
Rotation and renewalReplace credentials before they expire or when policy changes, without outagesCLM automation, deployment connectors, secrets managers
Revocation and deprovisioningInvalidate credentials on compromise or when a workload or device is retiredCRL and OCSP, SSH CA expiry, key destruction

Underneath those activities sit a few building blocks: a PKI to issue certificates, certificate lifecycle management to govern them, secrets management for API keys and tokens, and HSMs or key management services to protect the most sensitive private keys.


What Counts as a Machine Identity

A machine identity is any credential a non-human actor uses to authenticate, sign or encrypt. Machine identity management is the broader discipline; CLM is its largest part. The inventory includes:

Machine identityTypical examplesLifecycle concern
TLS server certificatesWebsites, APIs, load balancers, ingress controllers, mail serversExpiry, wrong chain, weak algorithm, public lifetime limits
Private / internal certificatesService mesh (mTLS), internal APIs, databases, VPN, Wi-Fi (802.1X)Unknown issuers, long lifetimes, no owner
Client and device certificatesLaptops, mobile devices, IoT, network equipmentEnrollment at scale, revocation when devices are lost
Cryptographic keysKeys in HSMs, cloud KMS, keystores (JKS, PKCS#12)Location, custody, algorithm, rotation
SSH keys and SSH certificatesAdmin access, automation accounts, host keysUnmanaged authorized_keys, no expiry on plain keys
Code and document signing certificatesRelease pipelines, signed PDFs, firmwareKey theft, timestamping, long-term validation
Workload and agent identitiesContainers, serverless functions, AI agents calling tools and APIsShort-lived, high volume, created and destroyed dynamically
Secrets and tokensAPI keys, service account credentials, OAuth client secretsHard-coded in code or configuration, rarely rotated

Each identity has a key, a lifetime and an owner; if any of the three is unknown, it can cause an outage or a breach.


Machine Identity Management vs IAM

Identity and access management (IAM) was built for people: joiners, movers and leavers, passwords, MFA, single sign-on and role reviews. Machine identities follow different rules.

Human identity (IAM)Machine identity (MIM)
CredentialPassword, passkey, MFA factor, smart cardCertificate and private key, SSH key, signing key, API key or token
Volume and churnGrows with headcount, changes with HR eventsGrows with servers, containers, devices and agents; many are created and destroyed within minutes
Lifecycle triggerHiring, role change, departureDeployment, scaling, certificate expiry, key compromise, algorithm change
OwnerThe personOften unclear: an application team, a platform team, or nobody
Typical failureAccount takeoverOutage from an expired certificate, or a stolen key used to impersonate a service
Main controlAuthentication policy and access reviewsInventory, short lifetimes, automated rotation and revocation

The two meet in zero trust architectures, where every connection is authenticated, whether it comes from a user or a workload. In practice, IAM governs who can request or approve a machine credential, and machine identity management governs the credential itself.


Why Machine Identity Management Matters

  • Outages. An expired certificate stops a service as surely as a failed server. Shorter public certificate lifetimes multiply the number of renewals that can go wrong.
  • Visibility gaps. Certificates and keys are created by many teams, tools and CAs. What is not in the inventory is not renewed, rotated or migrated.
  • Credential theft. A stolen private key or signing key lets an attacker impersonate a service or sign malicious software. Keys copied to laptops, repositories or tickets are the usual source.
  • Offboarding. Decommissioned servers and devices leave behind valid certificates and keys unless revocation is part of the retirement process.
  • Compliance. Regulations such as DORA and NIS2 expect organisations to know and control their ICT assets and cryptographic controls; auditors ask for evidence of key custody and certificate management.
  • Post-quantum migration. RSA and ECDSA certificates and keys will have to be replaced. A machine identity inventory is the starting point of any cryptographic inventory and migration plan.

Machine Identity Management Best Practices

  1. Discover continuously. Scan networks, hosts, keystores, cloud key services and CA records on a schedule, not once a year.
  2. Give every identity an owner. No certificate, key or service credential without a named team; escalate ownerless items.
  3. Set policy centrally. Approved CAs, algorithms, key sizes, lifetimes and wildcard rules, enforced at request time.
  4. Prefer short-lived credentials and automate rotation. Use ACME, EST, SCEP or CMP for certificates, an SSH CA instead of static SSH keys, and a secrets manager for API keys and tokens.
  5. Protect the most sensitive keys in hardware. CA, code signing and document signing keys belong in an HSM or a key management service, never in files on a server or laptop.
  6. Automate deployment and verify it. A renewed certificate is only useful once every endpoint serves it; check the served certificate after each change and roll back on failure.
  7. Plan revocation. Know who decides, which reason code applies and how CRL and OCSP are updated, and rehearse it.
  8. Log everything. Requests, approvals, issuance, rotation and revocation in a tamper-evident audit trail.
  9. Track algorithms. Record the algorithm of every certificate and key so the post-quantum migration can be planned and measured.

What Is Certificate Lifecycle Management?

An X.509 certificate binds a public key to an identity (a domain name, a host, a service, a person or an organisation) and is signed by a certificate authority (CA). The certificate has a fixed validity period, and the matching private key must stay protected for that whole period. Certificate management covers who requested it, where it is installed, who owns it, and how it is replaced or revoked.

Certificate lifecycle management turns that into a repeatable process with three properties:

  • Visibility. A current inventory of every certificate, public and private, with owner, location, issuer, algorithm and expiry.
  • Control. Policy on which CAs, key types, key sizes and lifetimes are allowed, and an approval path for exceptions.
  • Automation. Issuance, deployment, renewal and revocation done by machines through standard protocols, not by people following tickets.

NIST's practice guide on TLS server certificate management (NIST SP 1800-16) frames the goal in the same terms: a formal certificate management programme that can prevent, detect and recover from certificate-related incidents at enterprise scale.

CLM is often confused with PKI. A PKI is the infrastructure that issues certificates: the CAs, their keys, policies, CRLs and OCSP responders. CLM is the process that governs certificates from every CA you use, public and private. You need both; the PKI as a Service guide covers the issuing side.


The Certificate Lifecycle Stages and What Goes Wrong

The certificate lifecycle has nine stages. Most incidents can be traced to a gap at one of them, usually long before the certificate expires.

StageWhat happensWhat can go wrongControl to put in place
1. DiscoverFind certificates on hosts, keystores, cloud services, network endpoints and CA logsShadow certificates bought on a credit card or issued by an unknown internal CAScheduled scans across all sources, not one-off audits
2. Inventory / ownRecord each certificate with owner, application, location and renewal methodOwner left the company; nobody gets the expiry alertMandatory owner and team field; ownerless certificates escalated
3. Request / approveA CSR is submitted and checked against policyWrong key size, wildcard where not allowed, unapproved CAPolicy enforced at request time; approval workflow for exceptions
4. IssueThe CA signs the certificateWrong profile, missing SANs, broken chainCertificate profiles per use case; automated chain checks
5. DeployCertificate and key installed on every endpoint that needs itInstalled on one node of a cluster but not the others; private key copied by emailDeployment automation with validation and rollback; keys generated where they are used or held in a vault
6. MonitorTrack expiry, chain validity, algorithm and usageAlerts go to a shared mailbox nobody readsAlerts routed to the owner and the on-call rota, with escalation
7. RenewReplace before expiry, ideally with a new keyRenewed certificate issued but never deployedRenew at a fixed fraction of lifetime; verify the served certificate after deployment
8. RevokeInvalidate a certificate early (key compromise, superseded, decommissioned)Revocation not published; relying parties do not checkCRL and OCSP per CA; revocation playbook with reason codes
9. RetireRemove the certificate and destroy or archive the keyOld certificate still served by a forgotten hostDecommissioning step tied to asset lifecycle; rescan to confirm

Revocation reasons are defined in RFC 5280, including keyCompromise, cACompromise, affiliationChanged, superseded and cessationOfOperation. Online status checking is defined in RFC 6960 (OCSP).


Why Certificate Expiry Outages Happen

Certificate expiry outages tend to follow the same pattern. The certificate did exactly what it was designed to do: it stopped being valid on the date written in it. The failure is organisational.

The most common causes are:

  • No inventory. The certificate was in no tool, so no alert existed: typical for appliances, application keystores and forgotten internal CAs.
  • No owner. An alert existed but went to a person who changed roles or a distribution list nobody monitors.
  • Renewal without deployment. The new certificate was issued but only installed on some nodes, or the service was never reloaded, so the old one kept being served.
  • Intermediate and root expiry. The leaf certificate was fine but an intermediate CA certificate in the chain expired, or a client trust store did not include the new root.
  • Manual steps at scale. Ticket, CSR, upload and restart for each renewal; with hundreds of certificates, some get missed.

How to prevent certificate expiry outages: discover continuously, give every certificate an owner, automate renewal and deployment through a protocol such as ACME, verify the certificate actually served after each deployment, and alert on expiry well before the renewal window closes, not on the day.


Shrinking Certificate Lifetimes and SC-081

CA/Browser Forum Ballot SC-081v3, passed in April 2025, amended the TLS Baseline Requirements to phase down the maximum validity of publicly trusted TLS certificates and the reuse period for domain validation:

Certificate issuedMaximum validity (BR 6.3.2)Domain / IP validation reuse (BR 4.2.1)
Before 15 March 2026398 days398 days
From 15 March 2026200 days200 days
From 15 March 2027100 days100 days
From 15 March 202947 days10 days

At 47 days, each public certificate is replaced roughly once a month. A process that needs a person for each renewal will not keep up. The rule applies to publicly trusted TLS certificates; private CAs set their own policy. The 47-day TLS certificate timeline guide has the renewal maths and a preparation plan.


Automation Protocols: ACME, EST, SCEP and CMP

Four standard protocols cover most automated enrollment. A CLM programme usually needs more than one, because servers, network devices and mobile fleets support different protocols.

ProtocolStandardTypical useNotes
ACMERFC 8555 (Standards Track, 2019)Web servers, Kubernetes, reverse proxiesDefines http-01 and dns-01 challenges; clients include certbot, acme.sh, Caddy, cert-manager
ESTRFC 7030 (Standards Track, 2013)Devices, IoT, enterprise clientsOperations under /.well-known/est: cacerts, simpleenroll, simplereenroll, and optional serverkeygen, csrattrs, fullcmc
SCEPRFC 8894 (Informational, 2020)Network equipment, MDM-managed mobile devicesWidely deployed in network and mobile device management
CMPRFC 9810 (2025, obsoletes RFC 4210) and the lightweight profile RFC 9483Industrial, telecom and manufacturing PKIRich message set for enrollment, key update and revocation

For internal certificates, running ACME against your own private CA gives you the same automation that public web servers already use. The ACME private CA automation guide walks through it step by step, including Kubernetes cert-manager. For example, a cert-manager ClusterIssuer only needs the private CA's ACME directory URL:

# ClusterIssuer pointing cert-manager at a DuoKey CA over ACME
server: https://{cockpit-url}/api/pki/acme/{ca-id}/directory

cert-manager renews by default at two-thirds of the certificate lifetime, configurable with renewBefore.


Certificate Discovery: Finding Every Certificate

A certificate discovery tool answers which certificates exist, where, and who issued them. No single source gives the full answer:

Discovery sourceWhat it findsBlind spots
Network scanning (TLS handshakes on IP ranges and ports)Certificates served by reachable endpointsCertificates not served on the network (keystores, files, client certs)
Filesystem and keystore scanning on hostsPEM, DER, PKCS#12/PFX, JKS files, Windows certificate store, TPMHosts without an agent or credentials
Cloud provider APIsKeys and certificates in cloud KMS and key vaultsCertificates installed directly on VMs or containers
CA databases and Certificate Transparency logsEverything a given CA has issued for your domainsInternal CAs you do not know about; where the certificate is deployed
Load balancer, ingress and appliance APIsCertificates bound to virtual servers and routesVendor coverage varies

For each certificate, record at least subject and SANs, issuer, serial number, validity dates, key algorithm and size, signature algorithm, location, owner and renewal method. It also feeds your cryptographic inventory and your post-quantum migration plan.

Discovery is a loop, not a project: new services create certificates every week, so scan on a schedule and alert on differences.


CLM and Machine Identity Tool Checklist

Use this checklist to compare certificate lifecycle management and machine identity management tools, and ask vendors to demonstrate each item. For a vendor-by-vendor view, see the PKI solution buyer's guide and the sourced comparisons with Keyfactor and DigiCert.

CapabilityWhat to checkWhy it matters
Discovery sourcesNetwork, filesystem and keystores, cloud KMS and key vaults, CA imports, CT logsCoverage determines how many unknown certificates remain
CA-agnosticManages certificates from public CAs, private CAs and imported/external CAsMost estates use several CAs; switching CA should not mean switching tools
Ownership and approval workflowOwner field, team mapping, CSR approval, policy on key types and lifetimesPrevents ownerless certificates and policy drift
Enrollment protocolsACME, EST, SCEP, CMP, REST APIDifferent device classes need different protocols
Deployment automation and rollbackConnectors to servers, load balancers, Kubernetes; validation after deploy; rollback on failureRenewal without deployment is the most common hidden failure
AlertingExpiry thresholds, routing to owners, escalation, integration with ticketing and chatAlerts that reach the wrong person do not prevent outages
RevocationRevocation with RFC 5280 reasons; CRL and OCSP publicationFast, correct response to key compromise
PQC readinessML-DSA (FIPS 204) and SLH-DSA (FIPS 205) certificates, hybrid composite chains, algorithm reportingPost-quantum migration will reissue most certificates
AuditTamper-evident log of requests, approvals, issuance and revocationsEvidence for DORA, NIS2, FINMA and internal audit
API and integrationDocumented REST API, CI/CD integration, ITSM integrationCLM has to fit how teams already ship software

Machine Identity Beyond TLS

Machine identity management also covers credentials whose failures are quieter than a TLS outage.

Code signing. A stolen code signing key lets an attacker ship software your customers will trust. Keep the keys in a vault or HSM and log every signature.

Document signing. Signed PDFs, contracts and reports depend on a signing certificate whose private key must not sit on a laptop. Server-side signing through an API keeps the key in a managed keystore instead of on individual machines.

SSH. Plain SSH keys have no expiry and accumulate in authorized_keys files. An SSH certificate authority changes the model: as the OpenSSH ssh-keygen manual describes, ssh-keygen can sign user and host certificates, and the -V option sets a validity interval. Servers then trust the CA, and short-lived certificates replace long-lived keys.

Workloads and AI agents. Containers, functions and AI agents that call tools and APIs on behalf of users are machine identities too, often created and destroyed within minutes. The same questions apply: who owns it, what may it sign or decrypt, and how is its credential revoked? The Know Your Agent article discusses this problem, and DuoKey's approach is described on the agentic crypto agility page.


A 90-Day CLM Rollout Plan

This plan assumes partial visibility and mostly manual renewals.

Days 1-30: See everything

  • Agree the scope: public TLS, private TLS, client and device certificates, SSH, code and document signing
  • Run discovery across network ranges, hosts and keystores, cloud key services and CA exports
  • Build a single inventory with owner, application, issuer, expiry, algorithm and renewal method
  • List every certificate expiring in the next 90 days and assign each to a named owner

Days 31-60: Set policy and automate the riskiest

  • Write a certificate policy: approved CAs, key types and sizes, maximum lifetimes, wildcard rules
  • Introduce a request and approval workflow for certificates outside the automated path
  • Automate renewal for public-facing TLS first (ACME), then Kubernetes and internal web services
  • Route expiry alerts to owners and the on-call rota, with escalation
  • Write a revocation playbook (who decides, which reason code, how CRL and OCSP are updated)

Days 61-90: Extend and measure

  • Add device and network enrollment (EST, SCEP or CMP) where ACME does not fit
  • Add deployment automation with post-deployment validation and rollback
  • Bring SSH access and signing certificates into the inventory
  • Track a small set of measures: share of certificates with an owner, share renewed automatically, certificates expiring without a renewal in flight

How DuoKey Supports Machine Identity and Certificate Lifecycle Management

DuoKey's certificate management runs in DuoKey Cockpit, one console and API for private PKI, keys and discovery, operated by DuoKey or on your premises. According to the DuoKey PKI documentation:

  • CAs. Root, intermediate/issuing and external (imported) CAs. CA lifecycle includes suspend and reactivate, simple and cascade revoke, and archive. Parent-algorithm compatibility is enforced so post-quantum and hybrid chains verify.
  • External CA issuers. Public and cloud CAs such as Let's Encrypt, DigiCert, Sectigo, AWS Private CA and Google Cloud CAS can be driven from the same console, so requests, renewals and revocations for public and private certificates flow through one place.
  • Algorithms. RSA-2048/4096, EC-P256/P384, ML-DSA-44/65/87 (FIPS 204), SLH-DSA-128F/128S (FIPS 205) and a hybrid composite of ML-DSA-65 with ECDSA-P256. The documentation recommends PQC where you control both ends and the hybrid composite where classical relying parties must interoperate.
  • Key custody. A CA created with a vault keeps its signing key in that vault (an HSM such as Securosys, a cloud KMS or an MPC cluster) and signs certificates, CRLs and OCSP responses there. PQC and hybrid CAs are always vault-signed.
  • Lifecycle and governance. CSR approval workflow (request, approve or reject, issue), renewal, revocation with RFC 5280 reasons, a per-CA CRL and OCSP responder, and M-of-N quorum on CA revocation, archive and high-value issuance.
  • Enrollment. ACME (http-01, dns-01 and tls-alpn-01, with ACME Renewal Information; cert-manager verified end-to-end), EST, SCEP, CMP and a KMIP 2.1 server endpoint.
  • Deployment, renewal and alerts. Deployment connectors push certificates to F5 BIG-IP, FortiGate, Azure App Service, Entra ID, Apache, Nginx, IIS, Java keystores and Windows with validation and rollback. Renewal policies renew and redeploy deployed certificates before expiry, and expiry alerts go to e-mail, Microsoft Teams, Slack or webhooks.

Discovery. Cockpit scans networks and hosts (through agents) for TLS certificates and evaluates each against Mozilla, NIST and PCI DSS rules. The DuoKey PQC Scanner, the discovery engine of cryptographic posture management, finds filesystem certificates and keys (PEM, DER, PKCS#12/PFX, JKS/JCEKS), inspects X.509 certificates, and scans keystores including the Windows certificate store, JKS, PKCS#12 and TPM. It also inventories AWS KMS, Azure Key Vault and GCP Cloud KMS and produces a CBOM.

Beyond TLS. Cockpit includes an SSH certificate authority and a code signing service with non-exportable vault keys, and the PDF Sign API provides server-side PDF signing in which the certificate never leaves the tenant keystore. For secrets, OpenBAO with DuoKey provides Vault-compatible secrets management with MPC-based auto-unseal. For AI agents, see agentic crypto agility.

DuoKey is a private PKI and certificate management platform; publicly trusted WebPKI certificates still come from a public CA. For questions about specific integrations or deployment models, contact DuoKey.


FAQ

Q: What is machine identity management?

Machine identity management is the process of discovering, issuing, rotating and revoking the credentials that non-human actors use to authenticate: TLS and client certificates, cryptographic keys, SSH keys and certificates, signing certificates, API keys and tokens, and workload or AI agent identities. Certificate lifecycle management is its largest part.

Q: What is certificate lifecycle management?

Certificate lifecycle management (CLM) is the process of discovering, owning, issuing, deploying, monitoring, renewing, revoking and retiring every digital certificate in an organisation. Its goal is to prevent outages and security incidents caused by unknown, expired or misconfigured certificates, mainly through inventory, policy and automation.

Q: What is the difference between machine identity management and CLM?

CLM covers X.509 certificates from every CA you use. Machine identity management is broader: it also covers SSH keys, signing keys, keys in HSMs and cloud KMS, API keys and tokens, and workload and agent identities. Most organisations start with CLM because certificates cause the most visible outages.

Q: How is machine identity management different from IAM?

IAM governs human users: accounts, passwords, MFA and access reviews driven by HR events. Machine identity management governs credentials used by servers, workloads, devices and agents, which are often more numerous, often short-lived and frequently without a clear owner. IAM usually controls who may request or approve a machine credential.

Q: How do I find all certificates in my organisation?

Combine several discovery sources: network scans of TLS endpoints, filesystem and keystore scans on hosts, cloud KMS and key vault APIs, exports from every CA you use, and Certificate Transparency logs for your public domains. Merge the results into one inventory with an owner for each certificate, and repeat the scans on a schedule.

Q: How do I prevent certificate expiry outages?

Keep a continuously updated inventory, give every certificate a named owner, automate renewal and deployment with ACME or another enrollment protocol, verify the certificate actually served after each change, and send expiry alerts to owners and on-call well before the renewal window closes. Check intermediate CA expiry as well as leaf certificates.

Q: What is a certificate discovery tool?

A certificate discovery tool scans networks, hosts, keystores and cloud services to find certificates and record their issuer, expiry, algorithm and location. Certificates you have not found cannot be renewed or migrated.

Q: Does the 47-day limit apply to internal certificates?

No. SC-081 applies to publicly trusted TLS server certificates. Private CAs set their own lifetimes.

Q: How does certificate lifecycle management relate to post-quantum migration?

Most certificates today use RSA or ECDSA, which are vulnerable to a future quantum computer. A CLM inventory shows which certificates use which algorithms, and automated issuance lets you reissue them with ML-DSA, SLH-DSA or hybrid certificates.


Conclusion: CLM Is How You Stay Ahead of the Calendar

Certificates expire on a known date, so expiry outages are preventable: know every certificate, know who owns it, and let machines renew and deploy it.

  • Every certificate discovered and in one inventory
  • Every certificate has a named owner
  • Public TLS renewed and deployed automatically
  • Private certificates issued through ACME, EST, SCEP or CMP from a governed CA
  • Algorithms tracked for the post-quantum migration

References

Share

Written by

DuoKey Team

Discuss the decisions that matter most to your security programme.

Tell us where control is difficult today. We will help you identify a practical next step.