gnupg: Revision


Last updated 801 days ago by Peter Reutemann

GNU Privacy Guard (GnuPG or GPG) is a GPL Licensed alternative to the PGP suite of cryptographic software. (source: WikiPedia)

Generating keys

Keys can be generated using the following command (you can use the default values):

gpg --key-gen

If you get the following error message:

Not enough random bytes available.  Please do some other work to give
the OS a chance to collect more entropy! (Need 284 more bytes)

Then do the following:

  • install rng-tools: sudo apt-get install rng-tools
  • modify the default configuration: sudo vi /etc/default/rng-tools
  • add the following device: HRNGDEVICE=/dev/urandom
  • save the file
  • start the daemon: sudo /etc/init.d/rng-tools start

And start generating the keys again.

Listing keys

You can list the keys with the following command:

gpg --list-keys

Publishing keys

The key A6BAB25C can be published like this:

gpg --keyserver hkp:// --send-keys A6BAB25C