• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!


GPG Tutorial

Page history last edited by matthew 4 years, 3 months ago

GPG Tutorial


  • Using GnuPG with Sylpheed (Email Client) here
  • Can you extend the expiration date of an already expired GPG key? here
  • Making, Verifying, Clearsigned, Signatures here
  • Using Trust & Verifying here
  • Checking Fingerprints here
  • Exporting all your Public Keys here
  • Recommended word wrap settings for Gmail & GPG here
  • Adding additional comments to your signature here
  • Solving Error "invalid auto-key-locate list" here
  • Solving another error "gpg: invalid armor header:" here
  • Comments added like the following: --comment "Public Key at - http://bit.ly/hRfb9z" --comment "Homepage - http://bit.ly/erbpJY"
  • Error regarding key being newer than signature here
  • How to use a revocation certificate here
  • Generating a revocation certificate with gpg here 


Example: Display GPG usage commands


gpg --help



Example: Digitally signing and Verifying a key


gpg --sign-key KEY
gpg --check-sigs KEY



Example: Verifying a file by its accompanying digital signature file


gpg --verify FILE.sig FILE



Example: Adding a public key from a server


gpg --keyserver KEYSERVER --recv-key KEY



Example: Importing a Public key from a file


gpg --import FILE.asc



Example: Trusting a key


gpg --edit-key EMAIL
gpg --keyserver KEYSERVER --refresh-keys
gpg --list-keys



Example: Signing a file with a separate binary signature file


gpg -b FILE


Example: Verifying a file by its accompanying ASC file


gpg --verify FILE.asc FILE


Example: List private key(s)


gpg --list-secret-keys


Example: Clearsign a TXT document


gpg --clearsign DOCUMENT.txt



Example: Displaying a keys fingerprint


gpg --fingerprint KEY


Example: Importing Private key(s) from an ASC file


gpg --allow-secret-key-import --import FILE.asc



Example: Importing public key(s) from an ASC file


gpg --import FILE.asc


Example: Exporting your public key(s)


gpg --export --armor --output FILE.asc



Example: Reload the agent


gpg-connect-agent reloadagent /bye


Example: Deleting your Private and Public Keys from your Keyring


gpg --delete-secret-key KEY
gpg --delete-key KEY



Comments (2)

matthew said

at 11:37 pm on May 26, 2018

Updated a link

matthew said

at 5:28 am on Jun 12, 2018

Added a new option

You don't have permission to comment on this page.