PKI explained

PKI use cases and examples

The short answer

PKI use cases include every place where software must prove who is on the other end, or who signed something: HTTPS websites and APIs, mutual TLS between services, code signing, signed and encrypted email (S/MIME), legally recognised e-signatures, device and IoT identity, staff sign-in, Wi-Fi and VPN access, and SSH certificates.

Who it is for
Level
Beginner
Reading time
About 9 minutes
On this page
  1. What is PKI used for?
  2. How does PKI secure websites and APIs?
  3. How does mutual TLS secure services and APIs?
  4. How does code signing use PKI?
  5. How does S/MIME secure email?
  6. How do electronic signatures use PKI in the EU?
  7. How do devices and IoT use PKI?
  8. How do people sign in with certificates?
  9. What are other PKI use cases?
  10. Which industries rely on PKI?
  11. Which use cases need a public CA, and which a private one?
  12. Where to go next
  13. Frequently asked questions
  14. Keep going

Every use of PKI repeats the same three steps. A certificate authority signs a certificate that binds a public key to a name. The holder proves it has the matching private key by making a digital signature. The verifier checks the signature and the certificate chain up to a root it already trusts (how PKI works). What changes from one use case to the next is who is named, what is signed, and who must trust the root.

What is PKI used for?

Use case What the certificate proves Usually issued by Learn more
HTTPS websites and APIs The server really has the name you asked for A public CA TLS handshake
Mutual TLS between services Both client and server are who they claim A private CA Mutual TLS
Code and firmware signing Who published the software, and that it is unchanged A public CA, or your own CA for firmware Code signing
Email (S/MIME) Who sent the message A public CA for outside email Email and documents
Electronic signatures and seals Who signed a document or which organisation sealed it A qualified trust service provider in the EU Email and documents
Device and IoT identity The device is genuine, and it is yours The manufacturer’s CA, then a private CA Device identity
Staff sign-in, Wi-Fi and VPN The user or laptop is enrolled A private CA A CA of your own
SSH certificates Host and user keys are vouched for Your own SSH CA SSH certificates
PKI use cases around one mechanism: a CA vouches for keys, and each use case proves something different HTTPS the server's name Mutual TLS both ends Code signing who published it S/MIME email who sent it PKI a CA vouches for keys E-signatures who signed, and when Devices and IoT a genuine device Wi-Fi and VPN an enrolled user SSH certificates hosts and users second line: what the certificate proves
One mechanism, many jobs: in each case a CA vouches for a key, and the key holder proves it by signing.

How does PKI secure websites and APIs?

This is the use case almost everyone meets every day. When you open https:// in a browser, or an app calls an API, the server sends its certificate and the intermediate certificates above it. The client checks four things: the chain leads to a root in its trust store, every signature in the chain is valid, the dates are current, and the name you asked for is in the certificate’s Subject Alternative Name. Then the server proves it holds the private key by signing the handshake.

The certificate does not encrypt your traffic. In TLS 1.3, client and server agree fresh session keys with an ephemeral key exchange (ECDHE), and the certificate’s key only authenticates the server (the TLS 1.3 handshake, and PKI vs TLS for how the two fit together).

Websites use publicly trusted certificates, renewed automatically with ACME (certbot guide). Paste any certificate into the decoder to see the names and dates a browser checks.

How does mutual TLS secure services and APIs?

In ordinary TLS only the server shows a certificate. In mutual TLS the client does too, and proves it holds the matching key, so both ends are authenticated before any data flows. You meet it in three places:

  • Inside data centres and Kubernetes clusters, where a service mesh gives every workload a short-lived certificate and encrypts every call between services. Kubernetes itself “requires PKI certificates for authentication over TLS” between its own components (Kubernetes documentation).
  • In business-to-business and payment APIs, where each partner’s system authenticates with a client certificate.
  • On devices that call home to their manufacturer’s cloud.

Client certificates normally come from a private CA. Public TLS certificates 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 (mutual TLS, set up mutual TLS).

How does code signing use PKI?

When a publisher releases software, it signs a hash of the file with its private key and attaches the signature and its certificate. Before installing or running the file, Windows, macOS, a package manager or a firmware loader checks the signature and the chain. A trusted timestamp, added at signing time, keeps the signature valid after the certificate expires.

A valid signature proves two things: who signed the file, and that nobody changed it since. It does not prove the software is safe. That is why the signing key matters so much: the private keys of publicly trusted code signing certificates must be generated, stored and used in a hardware crypto module (since 1 June 2023). Open-source projects increasingly use “keyless” signing with Sigstore, where a short-lived certificate, valid for 10 minutes, ties each signature to a verified identity and is recorded in a public log (code signing, sign with signtool and cosign).

How does S/MIME secure email?

S/MIME (RFC 8551) uses certificates that name an email address. Signing and encrypting are separate jobs:

  • A signature is made with the sender’s private key, and proves who sent the message and that it was not changed.
  • Encryption uses the public key in the recipient’s certificate, so only the recipient’s private key can open the message. You need their certificate before you can send them encrypted mail.

Publicly trusted S/MIME certificates have their own rulebook: the CA/Browser Forum S/MIME Baseline Requirements apply to every publicly trusted S/MIME certificate (since 1 September 2023). Many organisations also issue S/MIME certificates to staff from a private CA for internal mail.

How do electronic signatures use PKI in the EU?

Signed PDFs and contracts use the same mechanism with a legal layer on top. The EU’s eIDAS Regulation (Regulation (EU) No 910/2014) defines three levels of electronic signature: simple, advanced and qualified. A qualified electronic signature needs a qualified certificate from a qualified trust service provider and a qualified signature creation device, and the regulation is explicit: a qualified electronic signature shall have the equivalent legal effect of a handwritten signature (Regulation (EU) No 910/2014, Article 25(2)).

eIDAS also covers:

  • Electronic seals, the organisation’s equivalent of a signature, used on invoices and official documents.
  • Qualified electronic time stamps, which carry a legal presumption that their date and time are accurate, so a signature can still be checked long after the signer’s certificate has expired.
  • Website authentication. Under Regulation (EU) 2024/1183 (eIDAS 2.0), web browsers must recognise qualified certificates for website authentication (QWACs) and show the identity data in them in a user-friendly way (Regulation (EU) 2024/1183, Article 45(1a)).

The same update introduces the European Digital Identity Wallet. Each member state must provide at least one wallet within 24 months after the implementing acts (Article 5a); in the European Commission’s summary, by the end of 2026 (email and documents).

How do devices and IoT use PKI?

A device certificate is a machine’s passport. At the factory, the device generates a key pair inside a secure chip, such as a TPM or secure element, and the manufacturer’s CA issues an IDevID certificate (IEEE 802.1AR-2018). When the device reaches its owner, the owner’s systems check that factory certificate, then issue their own LDevID for daily use.

You meet this pattern in network equipment, industrial sensors, payment terminals and cars. It also runs in your living room: every certified Matter smart-home device carries a Device Attestation Certificate, and your phone or hub checks it before the device joins your home network (device identity).

How do people sign in with certificates?

Inside organisations, certificates often replace or strengthen passwords:

  • Wi-Fi and wired networks with 802.1X and EAP-TLS: each managed laptop or phone presents a certificate from the company’s private CA, and no shared network password exists to leak.
  • VPNs, which accept only devices that hold a valid company certificate.
  • Smart cards and Windows certificate sign-in, where the private key stays on a card or in the laptop’s TPM. Windows domain controllers have tightened the rules here: since February 2025, domain controllers deny certificate sign-in when a certificate cannot be strongly mapped to an account.

These certificates come from a private CA, often Active Directory Certificate Services, enrolled automatically to managed devices (a CA of your own).

What are other PKI use cases?

  • SSH certificates. Instead of trusting each server key on first use, your own SSH CA signs host and user keys, and short-lived user certificates replace long-lived authorised keys (SSH certificates guide).
  • TLS inspection. Corporate proxies use a private root, installed on company laptops, to inspect encrypted traffic (working behind a corporate proxy).
  • Identity documents. Electronic passports and many national identity cards carry signed data on their chip, so border and identity systems can check that it was issued by the right authority and not altered.
  • Timestamping. A timestamping authority signs a hash and a time, proving that a document or a signature existed at that moment (code signing).

Which industries rely on PKI?

Every industry that runs software uses PKI for HTTPS. Some lean on it far more:

  • Finance and payments: mutual TLS between banks, partners and payment providers, with keys protected in HSMs.
  • Manufacturing, automotive and energy: device identity from the factory floor, and signed firmware for over-the-air updates.
  • Government and public services: electronic identity cards, passports, and qualified electronic signatures and seals.
  • Healthcare: identity for connected medical devices, and protected exchange of records between providers.
  • Software and cloud: code signing for every release, mutual TLS in service meshes, and the cluster CA that every Kubernetes cluster’s components rely on.

Which use cases need a public CA, and which a private one?

The rule is simple: if people or devices you do not manage must trust the certificate, you need a public CA, or for EU legal signatures, a qualified trust service provider. If only your own systems must trust it, a private CA is usually the better fit, because you control the names, the lifetimes and the rules. Most organisations run both. Public vs private PKI walks through the decision.

Where to go next

Guided mission · free · no account · progress saves hereCheck both sides at the API gate — 7 minutesVerify client identity with mutual TLS, then decide which actions the authenticated caller may perform.

Frequently asked questions

What is the most common use of PKI?

HTTPS. Whenever a browser or an app connects to a website or an API over TLS, the server presents a certificate and proves that it holds the matching private key. The client checks the certificate chain against its trust store and the name against the address it asked for, so it knows it reached the real server before any data is sent. Almost every connection your browser makes works this way.

What is an example of PKI in everyday life?

Opening your bank's website: before you type a password, your browser checks the bank's certificate chain against the roots it already trusts. Other everyday examples are the signature that lets your phone or computer install a software update, the certificate a company laptop uses to join the office Wi-Fi without a shared password, and the signed data on the chip of an electronic passport or identity card.

Is PKI only used for websites?

No. Websites are the most visible use, but the same certificates and chains secure traffic between services with mutual TLS, sign software and firmware, sign and encrypt email, create legally recognised electronic signatures, identify devices for their whole life, and let staff sign in with smart cards or join Wi-Fi and VPNs. Many of these run on private PKIs that the public never sees.

Does Wi-Fi use PKI?

Enterprise Wi-Fi often does. With 802.1X and EAP-TLS, each laptop or phone presents a client certificate from the organisation's private CA, and the device checks the network's certificate too, so there is no shared password to leak. Home Wi-Fi with one password does not use PKI: everyone shares one secret, which is the key-distribution problem that public-key cryptography helps to solve.

Is SSH a form of PKI?

Plain SSH is not: each client trusts each server key the first time it connects and keeps it in a known_hosts file. OpenSSH also supports SSH certificates, where your own SSH CA signs host and user keys, so clients trust any host the CA signed and servers accept short-lived user certificates. They are not X.509 certificates, but they follow the same idea: a trusted authority vouches for keys.

Do these use cases need a public or a private CA?

It depends on who must trust the certificate. Public websites, software distributed to the public and email to outside recipients need publicly trusted certificates. Mutual TLS between your own services, device identity, staff sign-in, Wi-Fi and VPN usually use a private CA, because only your own systems need to trust it, and publicly trusted TLS certificates are not meant for those jobs.

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