Skip to main content

GnuPG / GPG

  • This cheatsheet was useful for some basic usage, in particular extracting data out of a key using gpg.
  • Extracting a keyโ€™s ID can be done with gpg -k --with-colons | cut -d ':' -f5 for the 5th field

Troubleshootingโ€‹

If the following error is received:

error: gpg failed to sign the data
fatal: failed to write commit object

โ€ฆthen this StackOverflow article has a number of diagnostic steps to find the root cause of the issue.