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.
In more detail
What one key does, only its partner can check or undo: data signed with the private key verifies with the public key, and data encrypted to the public key decrypts only with the private key. Working out the private key from the public one is designed to be infeasible. Key pairs underpin digital signatures, SSH logins and TLS certificates, and cloud providers such as AWS can place a public key on a new server so the holder of the private key can log in.
Examples
openssl genpkey -algorithm ed25519 -out alice.keyopenssl pkey -in alice.key -pubout -out alice.pubRelated terms
- SSH — A protocol for logging in to and running commands on another computer securely over a network.
- instance — One virtual machine running in Amazon EC2.
- private key — The secret half of a key pair, which proves its holder's identity and must never be shared.
- public key — The shareable half of a key pair, used by others to verify your signatures or encrypt data only you can read.
- asymmetric cryptography — Cryptography that uses a pair of related keys: a public key that can be shared openly and a private key that its owner keeps secret.
- openssl genpkey — The OpenSSL subcommand that generates a new private key, such as an Ed25519 or RSA key, and writes it to a file.
Taught in
- Policy Simulation and Dry Runs — Cloud Infrastructure & Hyperscaler Architecture
- 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