public key
The shareable half of a key pair, used by others to verify your signatures or encrypt data only you can read.
In more detail
A certificate binds a public key to a name; an authorized_keys entry installs your public key on a server. Sharing it is safe, but installing one is an authorization decision: whoever holds the matching private key gets in.
Examples
openssl pkey -in alice.key -pubout -out alice.pubopenssl pkeyutl -verify -rawin -pubin -inkey alice.pub -in order.txt -sigfile order.sigRelated terms
- private key — The secret half of a key pair, which proves its holder's identity and must never be shared.
- key pair — Two mathematically linked keys made together: a private key the owner keeps secret and a public key that can be shared with anyone.
- X.509 certificate — A signed document binding a public key to a name, issued by a certificate authority, used by TLS to prove identity.
- digital signature — A value computed from data and a secret key that lets anyone with the matching verification key confirm the data came from the key holder and was not changed.
- public-key cryptography — Cryptography that uses a pair of keys: a private key kept secret to sign or decrypt, and a public key that can be shared to verify or encrypt.
- authorized_keys — The file in a user's ~/.ssh directory listing the public keys allowed to log in to that account over SSH.
- TLS certificate — A signed digital document that proves a server really owns a domain name and holds the key used to start encrypted TLS connections.
Taught in
- Workload Identity Federation: Eliminating Static Keys — Cloud Security & DevSecOps Engineering
- Supply Chain Security: SBOMs & Cosign Signing — Cloud Security & DevSecOps Engineering
- CloudTrail Logging, Integrity Validation & Athena — Cloud Security & DevSecOps Engineering
- CIA Triad, Non-Repudiation & Parkerian Hexad — Cybersecurity Fundamentals, GRC & Cryptography
- Asymmetric Cryptography: RSA, ECC & Diffie-Hellman — Cybersecurity Fundamentals, GRC & Cryptography
- Public Key Infrastructure: X.509 Certificates & CAs — Cybersecurity Fundamentals, GRC & Cryptography
- Post-Quantum Cryptography & Key Lifecycles — Cybersecurity Fundamentals, GRC & Cryptography
- Certificates, Chains And What A Handshake Proves — Linux Fundamentals & Systems Administration
- SSH Keys, The Agent And The Config File — Linux Fundamentals & Systems Administration
- SSH: Keys, And An sshd That Listens Where You Say — Red Hat Certified System Administrator (EX200) Exam Prep
- TLS And The Handshake — Application Security & Threat Modeling for Engineers
- Provenance And Signing — Application Security & Threat Modeling for Engineers
- SSH Keys And An Account For Ansible — RHCE in Ansible (EX294): Automate Red Hat Systems
References
- NIST glossary: public key
- NIST SP 800-57 Part 1 Rev. 5: Recommendation for Key Management
- RFC 4949: Internet Security Glossary, Version 2