PKI explained

Public vs private PKI

The short answer

Public vs private PKI comes down to who must trust your certificates. A public PKI uses certificate authorities that every browser and operating system already trusts, under strict shared rules. A private PKI is your own CA, trusted only by devices you configure. Use public certificates for anything outsiders reach, and private ones for internal services, devices and people.

Who it is for
Level
Practitioner
Reading time
About 10 minutes
On this page
  1. What is the difference between public and private PKI?
  2. What is a public PKI?
  3. What is a private PKI?
  4. When do you need a public certificate?
  5. When should you use a private PKI?
  6. Can you use public and private PKI together?
  7. Is a private PKI less secure than a public one?
  8. Public vs private PKI: how do you decide?
  9. Where to go next
  10. Frequently asked questions
  11. Keep going

Every public key infrastructure answers one question for a client: should I believe this certificate? The client says yes only if the certificate chains to a root in its own trust store. Public and private PKI differ in one thing: whose trust stores hold the root. That one difference decides everything else: the rules, the names you can use, the lifetimes, the cost and who carries the risk.

What is the difference between public and private PKI?

Public PKI Private PKI
Who trusts it Every mainstream browser, operating system and runtime, out of the box Only devices and software where you installed the root
Who sets the rules The root programs of Mozilla, Chrome, Apple and Microsoft, and the CA/Browser Forum Your own certificate policy (CP) and practice statement (CPS)
Which names Public domain names and public IP addresses that the CA can validate Anything you define: internal names, users, devices, services
How names are checked Domain control (DV), plus the organisation for OV and EV Whatever your policy says, often taken from your directory
Lifetimes Capped by the Baseline Requirements, and shrinking Set by you
Visibility TLS certificates are logged in public Certificate Transparency logs, because browsers require it Not logged; your names stay private
Audits Independent audits every year (WebTrust or ETSI) Internal or external audits, as your policy and regulators require
Who carries the risk The CA for issuing correctly; you for your keys and renewals You, for everything

The rest of this page explains both columns and how to choose.

What is a public PKI?

A public PKI is the set of commercial and non-profit certificate authorities whose roots have been accepted by the big root programs: Mozilla, Chrome, Apple and Microsoft (how roots get into trust stores). Those roots ship with every browser and operating system, so a certificate from such a CA works for anyone, anywhere, without any set-up.

That reach comes with strict rules. The CA/Browser Forum’s Baseline Requirements say how a CA must check names, protect its keys and run its systems, and each root program adds its own policy, such as the Chrome Root Program Policy, which also requires a full audit at least once a year. In practice:

  • The CA checks that you control every name in the certificate, with an HTTP file, a DNS record or a TLS response (domain validation). Since 15 March 2025, CAs must repeat domain validation and CAA checks from several network locations.
  • Your DNS can limit which CAs may issue for your domain, with CAA records: CAs must check CAA records before issuing since 8 September 2017.
  • Every certificate is public. Chrome, Apple’s platforms and Firefox on desktop accept a public TLS certificate only if it was logged in Certificate Transparency, so in practice each certificate, and every name in it, appears in public logs (Certificate Transparency).
  • Lifetimes are capped and shrinking. Publicly trusted TLS certificates issued from 15 March 2026 may last at most 200 days, falling to 47 days from 15 March 2029.
  • A CA that breaks the rules can be distrusted. Root programs then remove it, and its customers must move to another CA (famous failures).

Public CAs issue only for names they can check on the public internet. They will not issue for intranet.corp or db01.internal, and their TLS certificates are not meant to identify a person, a laptop or a microservice.

What is a private PKI?

A private CA is a certificate authority that you run yourself, or rent as a managed service, and whose root certificate you distribute only to your own devices: through Group Policy, a device-management profile, a container image or configuration management. Nobody else trusts it. That is the point: your CA cannot issue a certificate that the whole internet would accept.

Inside that boundary you make the rules. Your certificate policy says which names, key types, lifetimes and purposes are allowed, and who may request what. A well-run private PKI copies the architecture of public CAs: an offline root, one or more online issuing CAs, keys in hardware and written procedures (PKI architecture).

Common ways to run one:

  • Active Directory Certificate Services (AD CS) in Windows networks, which enrols computers and users automatically from certificate templates.
  • A managed private CA from a cloud provider, which runs the HSMs and the availability for you. AWS Private CA is one example; you still own the policy.
  • An open-source CA that speaks ACME, such as smallstep’s step-ca, so internal services renew the same way public ones do (ACME for internal names).
  • A service-mesh CA, which gives every workload a short-lived certificate for mutual TLS.

The price is distribution and ownership. Every client that talks to an internal service needs your root, and many runtimes keep their own trust store: a root installed in Windows does nothing for Python requests or a Java application (which store does my software use?). A missing root is behind many errors such as x509: certificate signed by unknown authority and self-signed certificate in certificate chain. The fix is always to install the root, never to switch verification off.

When do you need a public certificate?

Use a publicly trusted certificate whenever the other side is not under your control:

  • Public websites and APIs that customers, partners and their browsers reach. Get these from a public CA with ACME, so they renew by themselves (certbot guide).
  • Email signed for people outside your organisation with S/MIME, where their mail programs must trust your certificate. Here, the CA/Browser Forum S/MIME Baseline Requirements apply to every publicly trusted S/MIME certificate (since 1 September 2023).
  • Software you distribute to the public, which needs a publicly trusted code-signing certificate with its key in hardware (code signing).
  • Documents that must carry legal weight between organisations, such as EU qualified electronic signatures, which need a certificate from a qualified trust service provider (PKI use cases).

When should you use a private PKI?

Use a private CA when the names, identities or purposes belong to you alone:

  • Internal names that do not exist in public DNS, such as intranet.corp or payments.svc.cluster.local.
  • Mutual TLS between your services, or with partners who agree to trust your client CA. Public TLS hierarchies are becoming server-only. From 15 March 2027, TLS certificates that chain to the Chrome Root Store must list only the TLS server authentication purpose, and Let's Encrypt certificates no longer include the TLS client authentication purpose (from 11 February 2026 for the default profile, and 8 July 2026 for the last opt-in profile). A dedicated client CA also means that a valid chain already says “one of ours” (mutual TLS).
  • Devices: laptops, phones, Wi-Fi access points and IoT devices that prove their identity to the network, for example with 802.1X (device identity).
  • People: smart-card and Windows certificate sign-in, and staff access to VPN and Wi-Fi.
  • Short-lived workload identities in Kubernetes and service meshes, valid for hours or a day and renewed automatically.
  • TLS-inspection proxies, whose private root lets the company proxy inspect traffic on managed laptops (working behind a corporate proxy).

Can you use public and private PKI together?

Yes, and most organisations do. A typical split looks like this:

  • Public certificates, renewed by ACME, on everything that faces the internet: websites, public APIs, the outside of load balancers and mail servers.
  • A private two-tier PKI for internal TLS, mutual TLS, devices, users and the inspection proxy.
  • A public code-signing certificate, its key in an HSM or a signing service, for released software.

Three rules keep the two worlds apart:

  1. Never ask outsiders to install your root. If a partner must trust your CA, give them an issuing CA whose certificate carries Name Constraints limited to your own names, so that clients which enforce the constraint reject anything it signs for other names (private CA).
  2. Keep internal names out of public certificates. Everything in a public certificate is published in CT logs, so a name such as vpn-admin.example.com becomes visible to everyone the moment it is issued.
  3. Watch both. You can monitor CT for public certificates. Private certificates appear in no public log, so your own inventory is the only list of them (certificate lifecycle).

Is a private PKI less secure than a public one?

Not by design. Each is as strong as the way it is run. Public CAs work under outside pressure: audits, CT logs and root programs make their mistakes visible. A private CA gets none of that unless you build it in. The usual weak points are:

  • an online root CA, or CA keys kept in files instead of an HSM (guarding the keys);
  • templates that let requesters choose any subject name, which can let an insider impersonate others, including administrators;
  • no inventory and no monitoring, so internal certificates expire without warning;
  • clients that skip verification “because it is internal”, which removes the protection completely.

With an offline root, hardware-protected keys, names taken from your directory, short lifetimes and monitoring, a private PKI is as strong as a public one for its purpose.

Public PKI has risks of its own. You depend on a CA that can be distrusted: for example, from 12 November 2024, Chrome stopped trusting new Entrust TLS certificates (those first logged in Certificate Transparency after 11 November 2024). You do not control the renewal pace, which the CA/Browser Forum sets. And every name you certify becomes public.

Public vs private PKI: how do you decide?

Ask who must trust the certificate, then whether you can run a CA for years.

Choosing public or private PKI: who must trust the certificate, and who will run the CA Who must trust the certificate? anyone: browsers, customers, the public only systems you manage ✓ Public CA public names only renewed with ACME, logged in CT Can you staff a CA for years? yes no ✓ Your own private CA offline root plus an issuing CA ✓ Managed private CA provider runs the HSMs, you set the policy Partners? Public certificates, or a private CA limited to your names
Who must trust it decides public or private. Who will run it decides how.
  1. Who must trust it? If the answer includes anyone you do not manage, use a public CA. If only your own devices, services and people must trust it, a private CA fits.
  2. Can a public CA issue it at all? Internal names, user and device identities and client-only certificates rule out a public CA.
  3. Who will run it? A private CA needs key custodians, ceremonies, a CRL schedule, monitoring and backups for as long as its root lives. If you cannot staff that, use a managed private CA and keep ownership of the policy.

Where to go next

Guided mission · free · no account · progress saves hereBuild a private CA with clear limits — 7 minutesArrange root and issuing roles, scope certificate permissions, and distribute trust deliberately.

Frequently asked questions

Is Let's Encrypt a public or a private PKI?

Public. Let's Encrypt is a certificate authority whose root is in the major browser and operating system trust stores, so its certificates work for anyone on the internet. It follows the CA/Browser Forum rules, logs every certificate in Certificate Transparency and issues only domain-validated certificates, for public domain names and public IP addresses. It cannot issue for internal names such as db01.internal, which is one reason organisations also run a private CA.

Can I use a private CA for a public website?

It works only on devices that have your root installed. Every other visitor sees a warning such as NET::ERR_CERT_AUTHORITY_INVALID. Asking customers to install your root is a security risk for them, because whoever controls a root in their trust store can impersonate any website to them. For anything the public reaches, use a publicly trusted certificate, renewed automatically with ACME.

Is a self-signed certificate the same as a private PKI?

No. A self-signed certificate vouches only for itself, so every client must be told to trust that exact certificate, and it cannot be revoked. A private PKI has a root CA, usually kept offline, and one or more issuing CAs with policies, templates and revocation. You install the root once and every certificate it issues is trusted. Self-signed certificates suit a lab; a private CA scales to an organisation.

Do the shrinking TLS certificate lifetimes apply to private certificates?

No. The CA/Browser Forum limits apply only to publicly trusted TLS certificates. A private CA follows its own certificate policy, so you choose the lifetimes. Many private PKIs already issue certificates that last days or hours and renew automatically, because a short lifetime limits the damage of a stolen key. The real risk with private certificates is that nobody watches their expiry dates.

Can I use public TLS certificates for client authentication or mutual TLS?

Less and less. Chrome's root program is phasing out public TLS hierarchies that serve anything other than server authentication, and public CAs such as Let's Encrypt have already removed the client authentication purpose from their certificates. Trusting any publicly issued certificate as a client would also let in anyone who owns a domain. Use a private CA, or a dedicated client-authentication CA, for mutual TLS.

Is a private PKI cheaper than buying public certificates?

Not necessarily. Some public CAs issue domain-validated certificates at no charge, while a private PKI needs owners, protected keys or a managed service, ceremonies, monitoring and audits for years. A private CA pays off when you need certificates that public CAs cannot or should not issue: internal names, user and device identities, mutual TLS, or many short-lived certificates under your own rules.

Early edition. Written with AI assistance and checked against primary sources; an independent expert review is planned. Found a mistake? Tell us.

Last reviewed Edition 0.9