Importing Someone Else's Public Key

Last updated: July 21, 2026 · 9:15 PM ET

To encrypt a message to someone, you need their public key. This guide shows how to import it.


Steps to Import


Verify the Key

Always verify the fingerprint of a key before using it. Compare it with the owner's fingerprint from a trusted source.

gpg --fingerprint email@example.com
Warning: Using an unverified key can lead to man-in-the-middle attacks. Always verify.