Home › Cybersecurity wiki › What is public key infrastructure?

Wiki

What is public key infrastructure?

A public key infrastructure binds public keys to identities and makes that binding checkable.
It consists of parties that issue certificates and of rules by which others accept those certificates.
Without this infrastructure a public key would be only a number with no reliable holder.

Components of PKI

The components are the certificate authority, the registration authority, the certificates themselves, revocation information, and the applications that check certificates.
The holders' keys and the protection of the issuing party's key belong with them.
If one component fails, such as revocation information, verifiers accept certificates that should no longer be valid.

Certificate Authority (CA)

The certificate authority signs certificates and thereby stands for the binding between a name and a public key.
Its own key is the trust anchor of the environment.
Whoever can use that key without authorization can vouch for arbitrary identities.

Registration Authority (RA)

The registration authority checks whether an applying person or system is the name being claimed, before a certificate is issued.
It separates the identity check from the technical signing.
A superficial check turns every certificate signed correctly afterward into a false identity.

PKI Certificates

Certificates are the signed documents that contain the public key, the name, the validity, and the allowed purpose.
Applications decide from these fields whether they trust the key for a particular task.
A certificate without the right purpose, or outside its validity, is rejected even when the signature is mathematically correct.

Certificate Format

The format fixes which fields exist and how a signature is formed over them, so two implementations read the same document the same way.
A structured format with name, validity, key, and extensions is the usual case.
A document built differently fails the check before identity is even judged.

Certificate Validation

Validation checks the signature chain up to a trusted anchor, the validity period, the purpose, and whether the certificate was revoked.
It also checks whether the name matches the service being contacted.
A chain that ends only on an unknown anchor establishes no trust.

PKI Standards and Protocols

Standards and protocols make issuance, format, and checking fit together across vendors.
They describe how certificates are built and how the parties exchange them.
Deviations produce certificates one application accepts and another quietly rejects.

X.509 Standard

The X.509 standard describes the structure and fields of the certificates commonly used today, including name, validity, key, and extensions.
Applications that implement it can check the same chain.
Ignored mandatory fields or purposes set wrongly lead to assumptions the issuer did not make.

PKCS Standards

PKCS standards describe formats for keys, certificate requests, and the exchange of cryptographic messages among the parties.
They add to the certificate format the path by which material reaches the authority and leaves it again.
Knowing only the finished certificate and ignoring the request path misses where an identity was checked wrongly.

PKI in Practice

In practice, PKI carries device sign-in, encryption and signatures of messages, and the protection of connections on the network.
The benefit appears where a name must be bound to a key the other party does not yet know personally.
Operating the authorities matters as much as the mathematics.

Secure Email

Secure email uses certificates to encrypt a message and to sign the sender.
The recipient checks whether the certificate belongs to the claimed sender and is not revoked.
Without a shared trust anchor, the signature remains an unchecked claim.

Secure Web Browsing

Secure web browsing uses certificates so the browser binds the name of the site to the server's key.
The check covers chain, name, validity, and revocation.
A warning at that point is a reason to stop, not a habit to click through.

Challenges and Limitations of PKI

Limits appear where the trust anchor is weak, private keys leak, or the number of certificates overwhelms operations.
PKI moves trust onto the issuing parties and onto the protection of keys.
It is not an automatic process that makes every identity correct by itself.

Trust in the Certificate Authority

Trust in the certificate authority means accepting its check of identity and the protection of its key.
An authority that signs names without evidence, or that keeps its key poorly, devalues every certificate it has issued.
Environments therefore limit which anchors they accept at all.

Private Key Compromise

Compromise of the private key allows signing or decrypting for the affected name, depending on the certificate's purpose.
The issuer's key is more consequential than one end entity's key, because new certificates can be created with it.
The response is revocation, reissuance, and a search for where the key was used.

Scalability

Scalability concerns the number of identities, how often renewal happens, and the distribution of revocation information to every verifier.
A process that works for a few internal services fails when every device and every short lifetime is operated by hand.
Automation of issuance stays bound to the same identity check, or only the error scales.

Conclusion

PKI binds public keys to names through certificates and makes that binding checkable.
Authorities, formats, and revocation information have to fit together, or the signature is only mathematics.
Trust, key loss, and volume are the limits at which operations decide whether the infrastructure holds.