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.key
A private key left unprotected on a shared laptop lets its owner argue that someone else signed.

Related terms

Taught in

References

Certification courses