private key
The secret half of a key pair, which proves its holder's identity and must never be shared.
A stolen private key lets an attacker impersonate its owner, forge signatures and read data meant only for them.
In more detail
An SSH client or TLS server proves possession of it without ever sending it. Protect private key files with mode 600 and ideally a passphrase. Anyone who copies it can impersonate you until the matching public key is removed everywhere.
Examples
openssl genpkey -algorithm ed25519 -out alice.keyA private key left unprotected on a shared laptop lets its owner argue that someone else signed.Related terms
- public key — The shareable half of a key pair, used by others to verify your signatures or encrypt data only you can read.
- 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.
- 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.
- key rotation — Replacing a password or key with a new one on a schedule or after a suspected leak, and re-encrypting what it protected.
- 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.
- SSH key — A key pair used to log in over SSH: the private key stays on your machine and the public key is added to the server account.
- ssh-agent — A background program that holds your decrypted private keys for a session so you do not retype passphrases for every connection.
- signing key — The secret key used to sign tokens or messages, together with the key used to verify them, which may be the same secret or the public half of a pair.
Taught in
- Workload Identity Federation: Eliminating Static Keys — Cloud Security & DevSecOps Engineering
- Zero-Trust Network Access & IdP Federation — Cloud Security & DevSecOps Engineering
- Supply Chain Security: SBOMs & Cosign Signing — Cloud Security & DevSecOps Engineering
- Continuous IaC Drift Detection & State Protection — 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
- Cryptographic Hashing: SHA-256, SHA-3 & Passwords — 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
- Workload Identity — Application Security & Threat Modeling for Engineers
- 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: private key
- NIST SP 800-57 Part 1 Rev. 5: Recommendation for Key Management
- OpenSSH ssh-keygen manual