PKI: Whose Public Key Is This?
A public key is meant to be shared. That creates a practical question for the computer receiving it: whose key is this? An attacker can send a key too, so the key's arrival alone doesn't establish the identity behind it.
PKI stands for public key infrastructure. It is the system of people, procedures and technology used to issue, manage and withdraw digital certificates. Those certificates give computers a way to check an association between a public key and a person or system.
- Sign in to CAC and PIV sites from your own desk instead of driving back to the office.
- Start working the minute you plug it in, with no drivers to install on Windows 10/11 or a recent Mac.
- Slim enough to live in your laptop bag, so your card goes wherever you work.
Putting a name and a key in one signed record
Public-key cryptography uses two related pieces of data called keys. A private key is kept secret. Its public counterpart can be shared. In a digital-signature system, software uses the private key to create a signature and the public key to check it.
That check can establish that signed data matches the signature made with the corresponding private key. To connect the result to an identity, the recipient needs another piece of information: a trustworthy association between that identity and the public key.
An X.509 certificate, a digital certificate format, records such an association. It contains a public key and information about the subject it belongs to, along with limits on the certificate's use and validity. The subject may be a person or a computer system.
A certificate authority, or CA, issues the certificate and signs it. The authority is vouching for the association under its issuance rules. Different certificate types and rules make different assertions, so a certificate isn't a universal identity document.
What Your Browser Does Before Sending a Secret
The X.509 certificate standard describes this signed binding. The certificate can travel with the key, allowing a recipient to check more than the key's bare existence.
The checking computer needs somewhere to start
A signature from an unknown authority would only move the original question: whose key does that authority have, and why believe it?
A checking program therefore starts with a trust anchor, a key it has already been configured to trust. It checks the certificate's path back to that starting point, including the signatures and restrictions along the path.
That path may include intermediate authorities between the starting point and the final certificate. A newly received certificate must connect to trust the program already has. It can't make an unknown issuer trustworthy merely by naming that issuer.
This is one reason PKI is infrastructure rather than just a file format. Someone has to decide which authorities the program will trust and how certificates will be issued and checked.
- Understand what AES, RSA and hashing actually do before you rely on them.
- Learn to spot the mistakes that break real-world encryption.
- Get a practical introduction to modern encryption in one book.
A website proves it has the private key
Transport Layer Security, or TLS, protects connections such as those between a browser and a website. In a certificate-based TLS 1.3 connection, a server presents its certificate and signs part of the connection's setup exchange. That signature demonstrates use of the private key associated with the certificate.
The browser checks that proof as part of establishing the connection. Meanwhile, the connection setup establishes traffic keys used to protect the pages and other application data that follow. The TLS 1.3 specification describes these separate jobs.
The server's public key doesn't simply encrypt every web page. Nor is a digital signature generally a matter of “encrypting with the private key.” Signing and protecting the traffic are distinct operations.
A successful certificate check also doesn't judge a website's business practices. It supports the particular key and identity relationship being checked, not a promise that every offer on the site is honest.
Who Vouches for a Website's Certificate?
When the association stops being useful
Certificates have limited lifetimes. They can also be revoked, or withdrawn before expiry, if a private key is compromised or the association changes.
If someone else obtains the private key, a signature can still pass its mathematical check. Publishing a revocation gives checking software a reason to reject the certificate before its expiry date. PKI provides the way to communicate that change as well as the way to issue the certificate.
Digital Certificates: What Your Browser Can Actually Verify

What Is a Public Key, and Why Is It Safe to Share?

Certificate Authentication: Why the Private Key Matters

QUOTE:
"Amateurs hack systems, professionals hack people."

