FAQ Hero
Identity Trust

What Is Private PKI vs. Public PKI?

What is private PKI vs. public PKI?

Public PKI is run by publicly trusted CAs whose roots are built into operating systems, browsers, and platforms. Its certificates work almost anywhere without setup. Private PKI is a CA hierarchy that an organization runs, or has run for it. It's trusted only where its root is installed. Both use the same cryptography. They differ in who sets the rules and how far trust reaches.

Why are the names confusing?

Both public PKI and private PKI use key pairs, and every key pair has a public key and a private key. In "public PKI" and "private PKI," the words describe who trusts the certificates, not the keys. You'll also see other names:

  • Public PKI: external PKI or Web PKI 

  • Private PKI: internal PKI

How do private and public PKI differ?

 

Public PKI

Private PKI

Who sets the rules

The industry: CA/B Forum requirements and root program policies

Your organization's certificate policy

Where it's trusted

Everywhere the operating system or platform trusts the root

Only systems and devices where your root is installed or embedded 

Algorithms, validity, and certificate contents

Fixed by industry rules (for example, a 460-day maximum for public code signing certificates)

Set by you to fit your systems

Rule changes

Apply on the industry's schedule, including shorter lifetimes and required revocations

On your schedule

Who operates it

The CA, which is independently audited 

You, or a PKI service provider

Which should I use for software code signing?

Use public PKI for software that customers install on systems you don't control, such as commercial applications, installers, and Windows drivers.

Use private PKI for software that runs only on systems you manage:

  • Internal applications and scripts, where your application control policies trust your signing certificate
  • Internal containers
  • Test builds

For a certificate-level comparison, see Public vs. private code signing certificates.

Which should I use for firmware signing?

Usually private PKI. Firmware is normally verified by the device itself, not by an operating system's trust store. A hardware root of trust, such as boot ROM code, checks each image's signature against a public key, key hash, or root certificate stored on the device during manufacturing. The manufacturer controls that trust anchor. NIST SP 800-193 (Platform Firmware Resiliency Guidelines) describes this model, in which firmware updates are authenticated before they're installed.

The exception is firmware or drivers installed through an operating system, which must meet that platform's rules. Windows drivers, for example, go through Microsoft's hardware program.

Because the trust anchor may need to last the life of the device, follow these practices:

  • Protect signing keys in HSMs.
  • Plan key rotation up front. If the device verifies a certificate chain, sign with keys certified by an intermediate CA so you can rotate them without changing the root. If the device stores raw public keys, provision more than one key slot.
  • Block rollback to older, vulnerable firmware versions.
  • Plan for algorithm changes. For post-quantum firmware signing, NIST SP 800-208 approves stateful hash-based signatures (LMS and XMSS).

Which should I use for IoT signing?

IoT devices use PKI in two ways:

  • Device identity: Each device gets a certificate at manufacturing and uses it to authenticate to services.
  • Update signing: Over-the-air updates are signed, and devices verify them before installing.

Both typically use private PKI, because the manufacturer controls what devices trust and volumes are high. Some ecosystems run a shared PKI that is neither public Web PKI nor one company's private PKI. Matter is an example:

  • Each device carries a unique Device Attestation Certificate (DAC), installed at manufacturing.

  • The DAC chains through a Product Attestation Intermediate (PAI) certificate to a Product Attestation Authority (PAA) root.

  • PAAs must meet a certificate policy managed by the Connectivity Standards Alliance. Approved PAAs are listed in the Alliance's Distributed Compliance Ledger, which Matter commissioners use to check devices.

See the Matter handbook and What is Project CHIP?

What does it take to run a private PKI well?

  • A root CA kept offline or in an HSM, with intermediate CAs for day-to-day issuance

  • A certificate policy that defines profiles, algorithms, and validity periods

  • Revocation, for systems and devices that can check it

  • Access controls and audit logs for every CA and signing key

  • Lifecycle planning that matches product lifetimes, which can run many years for devices

Building this in-house is complex, so many organizations use PKI-as-a-service instead.

Can an organization use both?

Yes. Most do. A common split:

  • Public PKI for software customers installs on their own systems

  • Private PKI for internal software, firmware, and devices

The signing keys for both deserve the same levels of protection.

How DigiCert helps:

  • DigiCert Private CA provides private PKI-as-a-service. DigiCert creates and protects the root, and you control the intermediate CAs, certificate profiles, and policies.

Related questions: