<!-- https://pkizerotohero.com/pki-best-practices/ | Markdown mirror of the HTML page | PKI Zero to Hero, by Duyutech BV -->

> PKI best practices as a practical checklist: inventory, ACME and 47-day readiness, key protection, offline roots, CT, CAA, post-quantum and audits.

Source: https://pkizerotohero.com/pki-best-practices/ · Last reviewed: 2026-10-20

PKI explained

# PKI best practices

**The short answer:**

PKI best practices come down to eight habits: know every certificate and its owner, automate renewal with ACME as lifetimes shrink, keep private keys in hardware and out of code, keep the root offline, watch revocation and Certificate Transparency, set CAA records, prepare for post-quantum change, and write down and audit your rules.

Who it is for

- [IT ops](https://pkizerotohero.com/start/#itops)
- [Expert](https://pkizerotohero.com/start/#expert)
- [Leader](https://pkizerotohero.com/start/#leader)
- [Developer](https://pkizerotohero.com/start/#developer)

Level

Practitioner

Reading time

About 10 minutes

A [PKI](https://pkizerotohero.com/what-is-pki/) fails in predictable ways. A certificate expires and takes a service down. A private key turns up in a repository. A CA is distrusted and nobody knows which systems use it. An offline root’s CRL lapses and an entire hierarchy stops working. This checklist groups the practices that prevent those failures. Each item links the chapter that explains why and the guide that shows how. For design questions, such as how many CA tiers you need, see [PKI architecture](https://pkizerotohero.com/pki-architecture/).

## What are the most important PKI best practices?

| Area | The practice in one line | Start with |
| --- | --- | --- |
| Inventory and ownership | Every certificate listed, with an owning team and an expiry alert | [Certificate lifecycle](https://pkizerotohero.com/handbook/certificate-lifecycle/) |
| Automation | Issue, deploy and renew with ACME, ready for 47-day lifetimes | [Prepare for short-lived certificates](https://pkizerotohero.com/guides/prepare-47-day-certificates/) |
| Key protection | CA keys in HSMs; no private keys in code, tickets or images | [HSMs and key ceremonies](https://pkizerotohero.com/handbook/hsm-and-key-ceremonies/) |
| Offline root | The root signs only CAs and CRLs, in ceremonies | [PKI architecture](https://pkizerotohero.com/pki-architecture/) |
| Revocation and CT | A rehearsed key-compromise plan and CT monitoring | [Revocation](https://pkizerotohero.com/handbook/revocation/) |
| CAA | DNS names only the CAs you use | [Set CAA records](https://pkizerotohero.com/guides/caa-records/) |
| Crypto-agility | Algorithms you can change, a post-quantum plan | [Post-quantum cryptography](https://pkizerotohero.com/handbook/post-quantum/) |
| Policies and audits | A written CP and CPS, separated duties, yearly review | [A CA of your own](https://pkizerotohero.com/handbook/private-ca/) |

Together they form a loop, not a project. You keep running it for as long as you have certificates.

*Diagram: A loop of six steps. 1 Know: an inventory with owners. 2 Automate: ACME issues, deploys and renews. 3 Protect: keys in HSMs, never in repositories. 4 Watch: expiry, CT logs and CAA. 5 Respond: revoke and replace fast. 6 Review: policy, audit and crypto-agility, which leads back to step 1.*

PKI best practice is a cycle: know, automate, protect, watch, respond and review.

## How do you keep track of every certificate?

- **Keep one inventory** of every certificate, public and private. Include the places certificates hide: load balancers, CDNs, Kubernetes secrets, Java keystores, Windows certificate stores and appliances ([where certificates hide](https://pkizerotohero.com/handbook/certificate-lifecycle/)).
- **Give every certificate an owning team**, and record where it is deployed, which CA issued it, when it expires and how it renews. A team, not a person, so ownership survives holidays and departures.
- **Discover continuously.** Scan networks and cloud accounts for TLS endpoints, and search Certificate Transparency logs for your public names, so the inventory does not go stale ([monitor CT](https://pkizerotohero.com/guides/monitor-certificate-transparency/)).
- **Monitor what clients actually receive**, not the files on disk, and alert long before expiry ([check certificate expiry](https://pkizerotohero.com/guides/check-certificate-expiry/)). Do not rely on your CA to warn you: Let's Encrypt no longer sends expiration reminder emails (since 4 June 2025).
- **Watch the whole chain.** Intermediates and private roots expire too, and a renewal that ships without its intermediate breaks non-browser clients ([certificate chains](https://pkizerotohero.com/handbook/certificate-chains/)).
- **List the roots you trust, too.** Record every private root installed in your trust stores, including any TLS-inspection root, and remove the ones nothing uses any more ([trust stores](https://pkizerotohero.com/handbook/trust-stores/)).

## How do you automate certificates and prepare for 47-day lifetimes?

The CA/Browser Forum’s [ballot SC-081](https://cabforum.org/2025/04/11/ballot-sc081v3-introduce-schedule-of-reducing-validity-and-data-reuse-periods/) shortens the maximum lifetime of publicly trusted TLS certificates in steps: at most 200 days for certificates issued from 15 March 2026, 100 days from 15 March 2027, and 47 days from 15 March 2029. By then each name needs a new certificate at least eight times a year, and a CA may reuse a domain validation for only 10 days. Manual renewal does not survive that.

- **Automate issuance and renewal** for every public certificate with [ACME](https://pkizerotohero.com/handbook/acme/) (RFC 8555) or your CA’s API: [certbot](https://pkizerotohero.com/guides/certbot-lets-encrypt/) on Linux servers, [cert-manager](https://pkizerotohero.com/guides/kubernetes-cert-manager/) in Kubernetes, [win-acme](https://pkizerotohero.com/guides/win-acme-windows/) on Windows.
- **Automate the last mile.** Deploy to every node and reload the service. A renewed file on disk is not a renewed service.
- **Let the CA set the timing** with ACME Renewal Information, RFC 9773, on the IETF standards track, so clients renew inside the CA’s suggested window, including early, ahead of a mass revocation.
- **Make validation work every time.** Keep DNS API keys scoped as narrowly as your DNS provider allows, ideally to the validation records only, and make sure redirects, CDNs and firewalls never block the HTTP challenge ([wildcards with DNS-01](https://pkizerotohero.com/guides/wildcard-dns-01/)).
- **Serve the full chain and a sound TLS configuration** ([build the full chain](https://pkizerotohero.com/guides/build-fullchain/), [configure TLS securely](https://pkizerotohero.com/guides/tls-configuration/)).
- **Keep a second CA ready:** an account and a tested configuration, so a distrust or an outage becomes a configuration change.
- **Work through the readiness plan** in [how to prepare for short-lived certificates](https://pkizerotohero.com/guides/prepare-47-day-certificates/), and see the dates for any issue date in the [lifetime calendar](https://pkizerotohero.com/tools/lifetime/).

## How should private keys be protected?

- **Generate keys where they are used.** Never send private keys by email, chat or ticket, and never paste them into a website.
- **No private keys in repositories, container images or build logs.** Turn on secret scanning. A key that was committed, even briefly, is compromised: issue and deploy a new certificate with a new key, then revoke the old one.
- **Use a new key at every renewal.** A renewal that reuses an old key keeps every past exposure alive.
- **Keep CA keys in HSMs** under multi-person control. Public CAs must use modules validated to at least FIPS 140-2 or 140-3 level 3, or under a Common Criteria evaluation at EAL 4 or higher (Baseline Requirements section 6.2.7). Publicly trusted code signing has its own rule: code-signing keys must be kept in certified hardware (at least FIPS 140-2 level 2 or Common Criteria EAL 4+) (since 1 June 2023). See [guarding the keys](https://pkizerotohero.com/handbook/hsm-and-key-ceremonies/).
- **Limit who can use a key, not just who can copy it.** In a cloud key service, access policies decide who may ask for a signature. Review them like you would a smart card, and log every signing operation.

## Why keep the root CA offline?

Because a root that is never on a network cannot be reached by an attacker who gets into your systems, and replacing a root means touching every trust store.

- **Keep the root offline, in an HSM**, and use it only in scripted, witnessed ceremonies with a quorum of custodians ([key ceremonies](https://pkizerotohero.com/handbook/hsm-and-key-ceremonies/)).
- **Issue from online issuing CAs** whose certificates carry a path length of 0 and, where possible, name constraints ([PKI architecture](https://pkizerotohero.com/pki-architecture/)).
- **Calendar the root’s CRL.** Bring the root out to sign a fresh CRL well before its `nextUpdate` date, or clients that check revocation will reject the whole hierarchy.
- **Take subject names from your directory.** Templates that let requesters supply their own names need restricted enrolment and approval of every request ([a CA of your own](https://pkizerotohero.com/handbook/private-ca/)).
- **Plan the root’s successor** years before the root expires, so the new root is already in every trust store.

## How do you monitor revocation and Certificate Transparency?

- **Write and rehearse a key-compromise runbook:** who decides, who asks the CA to revoke, how the replacement is issued and deployed, and how you find every copy of the key. Public CAs must revoke within 24 hours once they have evidence of a key compromise (TLS Baseline Requirements, section 4.9.1.1), so your side has to move just as fast.
- **Publish CRLs that every client can reach**, from stable HTTP addresses. CRLs now carry the load: OCSP became optional and CRLs became mandatory for publicly trusted TLS certificates (since 15 March 2024).
- **Do not count on clients checking.** Browser revocation checking is largely soft-fail, so short lifetimes do much of the work ([revocation](https://pkizerotohero.com/handbook/revocation/)).
- **Monitor Certificate Transparency** for every domain you own, and investigate any certificate you did not request ([Certificate Transparency](https://pkizerotohero.com/handbook/certificate-transparency/), [monitor CT](https://pkizerotohero.com/guides/monitor-certificate-transparency/)).

## Should you set CAA records?

Yes. A CAA record in DNS names the CAs allowed to issue for your domain ([RFC 8659](https://www.rfc-editor.org/rfc/rfc8659)), and public CAs must respect it: CAs must check CAA records before issuing since 8 September 2017.

- **List only the CAs you really use**, with a separate `issuewild` rule if wildcards come from a different CA, and an `iodef` address for violation reports ([set CAA records](https://pkizerotohero.com/guides/caa-records/)).
- **Bind issuance to your ACME account** and validation methods with the [RFC 8657](https://www.rfc-editor.org/rfc/rfc8657) parameters. From 15 March 2027, public CAs must process the accounturi and validationmethods CAA parameters of RFC 8657.
- **Put CAA in your change process.** Moving to a new CA starts with a CAA update ([domain validation and CAA](https://pkizerotohero.com/handbook/domain-validation/)).

## How do you prepare for post-quantum cryptography?

- **Inventory algorithms**, key sizes and libraries alongside your certificates, and note how long each piece of data must stay secret.
- **Build crypto-agility:** algorithms set in configuration rather than code, protocols that negotiate, and automated certificates, so a change of algorithm is a routine renewal.
- **Turn on hybrid key exchange** where your servers and load balancers support it. X25519MLKEM768 hybrid post-quantum key exchange is on by default in Chrome, Firefox and Apple's operating systems (late 2024 in Chrome 131 and Firefox 132). Test yours with the [post-quantum TLS guide](https://pkizerotohero.com/guides/post-quantum-tls-test/).
- **Plan signatures by lifetime.** Publicly trusted TLS certificates still use classical signatures such as RSA and ECDSA; post-quantum signatures are not yet allowed in them (TLS Baseline Requirements, section 6.1.5). Start with the long-lived keys: roots, firmware and code signing. Pilot post-quantum signatures in a private CA ([post-quantum cryptography](https://pkizerotohero.com/handbook/post-quantum/)).
- **Know the planning dates.** United States: NIST IR 8547 (initial public draft, November 2024): NIST proposes deprecating quantum-vulnerable public-key algorithms at the 112-bit security level after 2030 and disallowing all of them after 2035. It is still a draft. European Union: the coordinated roadmap of 23 June 2025 says EU member states should start the transition by the end of 2026, finish it for high-risk use cases by the end of 2030 and complete as much as feasible by 2035.

## Which policies and audits does a PKI need?

- **A certificate policy and a certification practice statement**, following RFC 3647, approved by management and reviewed every year. A small PKI can combine them in one document.
- **Separation of duties.** The people who approve requests do not operate the HSM, and the people who run the CA do not review its logs. Keep the custodian quorum realistic, so two people leaving cannot lock you out.
- **Audits.** Public CAs are audited every year under WebTrust or ETSI schemes, as the root programs require. For a private CA, review templates, CA settings, ceremony records and access at least once a year.
- **Regulation.** In the EU, NIS2 asks essential and important entities for policies and procedures regarding the use of cryptography and, where appropriate, encryption (NIS2 Directive (EU) 2022/2555, Article 21(2)(h)). A written PKI policy is a direct part of that answer.
- **Trained people.** Everyone who touches certificates should know the basics: what a chain is, why expiry breaks things, and why switching off verification is never the fix. The [crash course](https://pkizerotohero.com/course/) covers it in about 90 minutes.

## What are the most common PKI mistakes?

- **Renewing by calendar reminder.** It works until the person who set the reminder leaves.
- **Switching off verification** with `curl -k`, `verify=False` or similar “for now”. Install the right root instead ([trust stores](https://pkizerotohero.com/handbook/trust-stores/)).
- **Monitoring files instead of endpoints**, so a renewed certificate that was never loaded goes unnoticed.
- **Wildcards everywhere.** One wildcard key copied to fifty servers means fifty places to steal it from, and fifty places to replace it.
- **Internal names in public certificates**, which publishes them in CT logs for everyone to read.
- **An online root, or CA keys in files**, because “it is only internal”.

## Where to go next

- **The big picture:** [What is PKI?](https://pkizerotohero.com/what-is-pki/) explains public key infrastructure from the start.
- **Design:** [PKI architecture](https://pkizerotohero.com/pki-architecture/) for hierarchies, and [public vs private PKI](https://pkizerotohero.com/public-vs-private-pki/) for choosing where each certificate comes from.
- **The chapters behind the checklist:** [inventory and renewal](https://pkizerotohero.com/handbook/certificate-lifecycle/), [ACME](https://pkizerotohero.com/handbook/acme/), [HSMs and key ceremonies](https://pkizerotohero.com/handbook/hsm-and-key-ceremonies/), [revocation](https://pkizerotohero.com/handbook/revocation/), [Certificate Transparency](https://pkizerotohero.com/handbook/certificate-transparency/) and [post-quantum cryptography](https://pkizerotohero.com/handbook/post-quantum/).
- **For leaders:** [PKI for leaders in 10 minutes](https://pkizerotohero.com/leaders/) and the dated list of [what is changing in PKI](https://pkizerotohero.com/changes/).

## Frequently asked questions

### What is the most important PKI best practice?

Knowing what you have. Most certificate outages, and many security incidents, start with a certificate nobody listed: on a load balancer, an appliance or an internal service. An inventory that records every certificate, where it is deployed, who owns it and when it expires makes every other practice possible, from automated renewal to fast replacement after a key compromise or a CA distrust.

### How often should certificates be renewed?

Automatically, and well before they expire. A common rule is to renew when about a third of the lifetime is left, or inside the renewal window that the CA suggests through ACME Renewal Information (ARI). Publicly trusted lifetimes keep shrinking, so public certificates will need renewing many times a year. At that pace, manual renewal stops being an option and every step, including deployment, has to be automated.

### Is it ever acceptable to store private keys in Git?

No. Anything committed to a repository is copied to every clone, fork, backup and build log, and stays in the history even after you delete it. Generate keys where they are used, keep them in an HSM, a cloud key service or a secrets manager, and let applications read them at run time. Turn on secret scanning, and treat any key that was ever committed as compromised.

### Do I need an HSM for my PKI?

For CA keys that many systems trust, yes, or a cloud HSM or key management service that does the same job. Public CAs must use validated hardware, and publicly trusted code-signing keys must be kept in hardware too. Ordinary server keys rarely need an HSM: short lifetimes, a new key at every renewal and strict file permissions usually protect them well enough.

### What should a PKI policy contain?

A certificate policy says what must be true: who may get which certificate, how identities are checked, which key types and lifetimes are allowed, and the rules for revocation and audit. A certification practice statement says how one particular CA does it. RFC 3647 gives the standard outline, which public CAs also use. Small organisations often write one combined document; what matters is that it is approved, followed and reviewed.

### How do I prepare for 47-day certificates?

Find every publicly trusted certificate, give each one an owning team, and move each to automated renewal with ACME or your CA's API, including deployment and the service reload. Make sure domain validation succeeds every time, because CAs will soon be allowed to reuse a validation for only a short time. Add monitoring of what servers actually send, and do all of this while lifetimes are still long enough to absorb mistakes.

### What is crypto-agility?

Crypto-agility is the ability to change algorithms, key sizes or CAs without rebuilding your systems. It comes from habits: an inventory of where cryptography is used, algorithms set in configuration rather than code, protocols that negotiate, and automated certificate renewal. It matters now because post-quantum algorithms are arriving, and because a CA distrust can force you to replace many certificates within weeks.

**Early edition.** Written with AI assistance and checked against primary sources; an independent expert review is planned. Found a mistake? [Tell us](https://pkizerotohero.com/contact/?topic=content-error&page=/pki-best-practices/).

Last reviewed 20 October 2026Edition 0.9

## Keep going

### In depth: handbook chapters

- [Chapter 19: Inventory, expiry and renewal](https://pkizerotohero.com/handbook/certificate-lifecycle/)
- [Chapter 20: ACME and the 47-day schedule](https://pkizerotohero.com/handbook/acme/)
- [Chapter 21: Guarding the keys: HSMs and key ceremonies](https://pkizerotohero.com/handbook/hsm-and-key-ceremonies/)
- [Chapter 22: A CA of your own: private two-tier PKI](https://pkizerotohero.com/handbook/private-ca/)
- [Chapter 16: Taking it back: CRLs, OCSP and stapling](https://pkizerotohero.com/handbook/revocation/)
- [Chapter 17: Certificate Transparency](https://pkizerotohero.com/handbook/certificate-transparency/)
- [Chapter 11: Proving you own the name: DV, OV, EV and CAA](https://pkizerotohero.com/handbook/domain-validation/)
- [Chapter 26: Post-quantum cryptography](https://pkizerotohero.com/handbook/post-quantum/)

### Do it: how-to guides

- [How to prepare for short-lived certificates: a checklist](https://pkizerotohero.com/guides/prepare-47-day-certificates/)
- [How to check when a certificate expires, and monitor it](https://pkizerotohero.com/guides/check-certificate-expiry/)
- [How to get and renew Let's Encrypt certificates with certbot](https://pkizerotohero.com/guides/certbot-lets-encrypt/)
- [How to automate certificates in Kubernetes with cert-manager](https://pkizerotohero.com/guides/kubernetes-cert-manager/)
- [How to build the full chain file your server needs](https://pkizerotohero.com/guides/build-fullchain/)
- [How to configure TLS securely (versions, ciphers, HSTS)](https://pkizerotohero.com/guides/tls-configuration/)
- [How to set CAA records for your domain](https://pkizerotohero.com/guides/caa-records/)
- [How to monitor Certificate Transparency for your domains](https://pkizerotohero.com/guides/monitor-certificate-transparency/)
- [How to test post-quantum hybrid TLS](https://pkizerotohero.com/guides/post-quantum-tls-test/)

### Fix it: error pages

- [NET::ERR\_CERT\_DATE\_INVALID](https://pkizerotohero.com/errors/chrome-err-cert-date-invalid/)
- [verify error:num=10:certificate has expired](https://pkizerotohero.com/errors/openssl-certificate-has-expired/)

### Check yours: tools

- [Lifetime calendar](https://pkizerotohero.com/tools/lifetime/): See how long a certificate may live on any date, and when to renew.
- [Chain checker](https://pkizerotohero.com/tools/chain/): Paste a chain and see which link is missing, expired or out of order.

### Topics

- [Lifecycle and automation](https://pkizerotohero.com/topics/lifecycle-and-automation/)
- [Revocation and transparency](https://pkizerotohero.com/topics/revocation-and-transparency/)
- [Private PKI](https://pkizerotohero.com/topics/private-pki/)
- [Post-quantum cryptography](https://pkizerotohero.com/topics/post-quantum/)

### More PKI explained

- [What is PKI? Public key infrastructure explained](https://pkizerotohero.com/what-is-pki/)
- [How does PKI work? Step by step](https://pkizerotohero.com/how-does-pki-work/)
- [PKI components: CA, RA, repositories, revocation and more](https://pkizerotohero.com/pki-components/)
- [What is a digital certificate?](https://pkizerotohero.com/what-is-a-digital-certificate/)
- [What is a certificate authority (CA)?](https://pkizerotohero.com/what-is-a-certificate-authority/)
- [PKI vs TLS (and SSL): how they fit together](https://pkizerotohero.com/pki-vs-tls/)
- [Public vs private PKI: which do you need?](https://pkizerotohero.com/public-vs-private-pki/)
- [PKI architecture: one-, two- and three-tier hierarchies](https://pkizerotohero.com/pki-architecture/)
- [PKI use cases and examples](https://pkizerotohero.com/pki-use-cases/)
- [PKI interview questions and answers](https://pkizerotohero.com/pki-interview-questions/)
- [Security+ PKI: certificates, CAs and keys](https://pkizerotohero.com/security-plus-pki/)
