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.key
openssl pkey -in alice.key -pubout -out alice.pub

Related terms

Taught in

References