What Is Public Key Infrastructure (PKI)?
Public key infrastructure, or PKI, is the system that answers one question: how can your browser trust a public key from a website it has never visited? The answer is a set of roles, files and rules that together bind a key to an identity and let anyone check that binding. HTTPS, signed email, code signing and many VPNs all depend on it.
The problem PKI solves
Public-key cryptography lets two parties set up secure communication without sharing a secret first. But it has a weak point. If an attacker hands you their public key and says it belongs to your bank, encryption alone will not catch the lie. You need a trusted third party who vouches that a particular key belongs to a particular name. That vouching is a digital signature, and the signed document is a certificate.
Public key infrastructure (PKI): the parts
| Component | Role |
|---|---|
| Key pair | A public key shared openly and a private key kept secret |
| Certificate | A signed statement binding a public key to a name, with validity dates |
| Certificate Authority (CA) | The organization that verifies requests and signs certificates |
| Registration / validation | The checks a CA performs, such as proving control of a domain |
| Trust store | The root certificates a device or browser already trusts |
| Revocation | Ways to cancel a certificate early, such as CRLs and OCSP. Some CAs are retiring their OCSP responders, so short lifetimes now do much of that work |
| Policies | Rules CAs must follow, audited by browsers and auditors |
How a chain of trust works
A browser does not trust your website's certificate directly. It trusts a short list of root CAs shipped with the operating system or browser. Root keys are kept offline, so roots sign intermediate CAs, and intermediates sign the certificates that websites use. When a server connects, it sends its certificate plus the intermediates. The browser follows the signatures upward until it reaches a root it already trusts. If any link is missing, expired or untrusted, the connection fails. That is why servers must send the complete chain.
Root CA (in the trust store, key kept offline)
signs
Intermediate CA
signs
Your certificate (example.com)You can inspect the chain a server sends with openssl s_client -connect example.com:443 -showcerts, or with the free SSL chain checker. Terms used here are defined in SSL/TLS Glossary: Handshake to HSTS.
Issuing a certificate step by step
- You generate a key pair on your server. The private key never leaves it.
- You create a CSR, which holds the public key and the names you want. See generating a private key and CSR.
- The CA checks you control the names, for example by a DNS record or a file at a known URL.
- The CA signs the certificate and returns it with its intermediates.
- You install them and the server starts presenting the chain.
Automated CAs run this loop through the ACME protocol, which is how free certificates renew without anyone touching them; see automating certificate management.
Public key infrastructure: public PKI versus private PKI
| Public PKI | Private PKI | |
|---|---|---|
| Who runs the CA | A public CA trusted by browsers | Your organization |
| Who trusts it | Everyone by default | Only devices you configure |
| Typical use | Public websites and APIs | Internal services, device fleets, client certificates |
| Rules | Set by browser programs and industry audits | Set by you |
| Main cost | Domain validation and renewal | Running and protecting the CA yourself |
Private PKI is common for internal services and for mutual TLS, where clients present certificates; see Configure mTLS for APIs: Client Certificates. The CA's private key is the crown jewel of a private PKI. If it leaks, every certificate it issued is suspect.
What can go wrong
- An expired certificate or intermediate breaks connections; monitoring and automation prevent it.
- A leaked private key lets someone impersonate the site until the certificate is replaced and revoked; see what happens when a private key is leaked.
- A CA that issues wrongly is a risk to everyone. Certificate Transparency logs and CAA DNS records help detect and limit this.
- Trusting a root that should not be trusted undermines the whole chain.
Related reading: what a DV certificate is, DV vs OV vs EV certificates and what an SSL certificate is.
Frequently Asked Questions
Is PKI the same as SSL?
No. PKI is the system of keys, certificates and authorities. SSL and TLS are the protocols that use it. A certificate is one output of a PKI.
Can I run my own PKI?
Yes, and it is the normal choice for internal services. You run the CA, issue certificates to your own clients and servers, and distribute the root to the machines that must trust it.
What is a root certificate?
The self-signed certificate at the top of a chain. Operating systems and browsers ship a list of roots they trust, and everything below them is verified by following signatures up to one of those roots.
✅ Post-Installation Verification & SEO Checklist
After applying the steps above, run through this 5-point checklist to prevent browser warnings and protect your Google SEO rankings:
- Verify full CA chain trust and TLS 1.3 support using our Live SSL Checker.
- Scan for Mixed Content HTTP links and check HSTS/CSP headers on Security Headers Checker.
- Enforce a permanent 301 HTTP-to-HTTPS redirect with our HTTPS Redirect Generator.
- Confirm both root and
wwwversions resolve cleanly to one canonical HTTPS URL. - Verify your HTTPS property and
sitemap.xmlinside Google Search Console and Bing Webmaster Tools.