Security & SSL

What Is PKI (Public Key Infrastructure)? Key Fundamentals Explained

PKI is the framework of technologies, policies, and roles that enables issuing, managing, and revoking digital certificates to authenticate identities and encrypt internet communications.

Hand holding a brass padlock, symbolizing security and protection

PKI (Public Key Infrastructure) is the system of components, policies, and procedures that makes it possible to issue, distribute, validate, and revoke digital certificates. It is the invisible backbone that turns the padlock in your browser into a real guarantee of identity and encryption.

Without PKI, SSL certificates, secure e-commerce, and legally binding digital signatures would not exist.

The Problem PKI Solves

In asymmetric cryptography, every entity has a key pair: a public key (shareable with the world) and a private key (known only to its owner). What is encrypted with the public key can only be decrypted with the private key, and vice versa.

The problem: how do you know the public key you just received actually belongs to the bank or store you want to connect with, and not to an attacker impersonating them? That is where PKI comes in: a verified trust system that binds a public key to a verified identity through a digital certificate.

Main Components of a PKI

Certificate Authority (CA)

The CA is the trusted entity that signs and issues digital certificates. It guarantees that the public key in the certificate belongs to who it claims to be. Well-known examples: DigiCert, Sectigo, Let's Encrypt.

There is a hierarchy:

  • Root CA: the highest authority. Its certificate is pre-installed in operating systems and browsers. It never issues end-user certificates directly to minimize its exposure.
  • Intermediate CA: signed by the Root CA, it issues end-user certificates. If compromised, it can be revoked without affecting the Root CA.

Digital Certificate (X.509)

A file that contains:

  • The holder's public key.
  • The holder's identity (domain, organization, person).
  • The validity period.
  • The issuing CA's digital signature.

The most widely used standard is X.509, which defines the format of the SSL/TLS certificates that protect websites.

Registration Authority (RA)

Acts as an intermediary between certificate applicants and the CA. It verifies the applicant's identity before the CA issues the certificate. In many cases, the CA and the RA are the same organization.

Repository, CRL, and OCSP

Certificates can be revoked before their expiration date (for example, if the private key is compromised). Two mechanisms publish that information:

Mechanism Description Advantage
CRL (Certificate Revocation List) A list of revoked certificates published by the CA. Simple; no real-time dependency.
OCSP (Online Certificate Status Protocol) Real-time query of a certificate's status. Immediate response; more efficient than a full CRL.

How PKI Works in an HTTPS Connection

  1. Your browser connects to https://store.com.
  2. The server sends its digital certificate.
  3. The browser verifies the certificate was signed by a trusted CA (whose root certificates are pre-installed).
  4. It verifies the certificate's domain matches the one requested.
  5. It checks the certificate has not expired or been revoked (OCSP/CRL).
  6. If everything passes, the browser uses the certificate's public key to start the TLS handshake and establish an encrypted session.

This entire process happens in milliseconds, completely transparent to the user.

Public PKI vs. Private PKI

Not all PKI is public. Large enterprises deploy private PKIs (also called internal PKIs) to manage the security of their corporate networks:

  • Authentication of internal devices (laptops, servers, printers).
  • VPNs and certificate-based Wi-Fi access.
  • Internal code signing and email signing.

The key difference: certificates from a private PKI are not recognized by public browsers, but they are by that organization's devices (because the corporate Root CA is manually installed on them).

For public websites, you always need a publicly recognized CA. At elenlace.com we handle the installation and renewal of SSL certificates from top-tier public CAs so your site earns trust from the very first click.

Why PKI Matters for Your Website

If you have a website, you are already using PKI whether you know it or not. Your SSL/TLS certificate is a direct product of this infrastructure. Understanding the fundamentals helps you:

  • Choose the right certificate type (DV, OV, EV) based on the level of verification you need.
  • Understand why a certificate might trigger browser errors (incomplete chain, revoked, expired).
  • Make informed decisions about hosting providers and CAs.

Dive deeper into certificate types and other web security topics in our SSL security resource center.

Key Takeaways

  • PKI is the trust system that binds public keys to verified identities through digital certificates.
  • Its main components are the CA (root and intermediate), X.509 certificates, the RA, and revocation mechanisms (CRL/OCSP).
  • Every HTTPS connection you make goes through a PKI validation in milliseconds.
  • There are public PKIs (for websites) and private PKIs (for corporate networks).
  • Understanding PKI helps you choose better SSL certificates and diagnose security errors.

Want to make sure your website has the right PKI in place? Talk to the elenlace.com team and we'll help you choose and install the right SSL certificate for your needs.

FAQ

Are PKI and SSL the same thing?

Not exactly. SSL/TLS is the encryption protocol. PKI is the infrastructure that makes it possible to issue the certificates SSL/TLS relies on. PKI is the broader system; SSL/TLS is one of its most visible applications.

What is the "chain of trust" in PKI?

It is the sequence of certificates from yours (end-user) up to the Root CA, passing through one or more Intermediate CAs. The browser walks that chain to verify each link was signed by the previous one. If any link is missing or revoked, the connection fails.

Is Let's Encrypt a public PKI CA?

Yes. Let's Encrypt is a non-profit public CA that issues free DV (Domain Validated) certificates. It is part of the same PKI infrastructure as paid CAs like DigiCert or Sectigo — the difference is in the verification level, not the underlying technology.

What happens if my certificate's private key is compromised?

You must revoke the certificate immediately through your CA and issue a new one with a different key pair. Browsers will consult OCSP or the CRL and know the compromised certificate is no longer valid, protecting your users.

Further reading

Other providers and guides worth comparing:

← All