gpg --export --armor alice@example.com > alice.asc

Category: Security & Hardening

gpg --export --armor alice@example.com > alice.asc

Export a public key as ASCII armor

Writes Alice's public key in armored text format, safe to paste into emails or share on key servers. The --armor flag produces readable text instead of binary. Recipients import it with gpg --import alice.asc before they can encrypt to you.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.