gpg --import alice.asc

Category: Security & Hardening

gpg --import alice.asc

Import a public key from a file

Adds the key in alice.asc to your keyring so you can encrypt messages to Alice and verify her signatures. After importing, check the fingerprint with gpg --fingerprint alice@example.com and confirm it over a trusted channel. Importing a key alone does not make it trusted.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.