Black Market

Importing Someone Else's Public Key

Last updated: May 2026

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


Steps to Import

  • From a file: gpg --import keyfile.asc
  • From a keyserver: gpg --keyserver keyserver.ubuntu.com --recv-keys KEY_ID

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.