GnuPGP Key

First I generated a PGP Key Pair by typing the command

gpg –gen-key

You are prompted with the following

gpg (GnuPG) 1.4.6; Copyright (C) 2006 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.

Please select what kind of key you want:
(1) DSA and Elgamal (default)
(2) DSA (sign only)
(5) RSA (sign only)
Your selection?

I usually take the defaults when prompted.

I then read the manual provided at the GnuPGP website. Some other resources I found useful are listed below. Next you need to register your Public Key with a reliable key server, I used one that I found in the UK here.

Below is the command I used to register my public key, yours will be almost exactly the same, apart from the public key 6E8A8EB6 which is mine, your of course will be different.

billy@linux:~$ gpg –fingerprint billy
pub   1024D/6E8A8EB6 2008-03-18
Key fingerprint = 2133 B30D CCF4 1739 5EC6  AEF0 8690 2B09 6E8A 8EB6
uid                  Billy Dickson
sub   2048g/08E07B36 2008-03-18
gpg –keyserver pgp.uk.demon.net –send-key 6E8A8EB6

Below is a pretty basic bash script that I wrote to backup my public and private keys. I then copied the resulting file to a CD and hid it in my house (somewhere) :)

gpg -a –export-secret-keys 6E8A8EB6 > sec_key.asc; gpg -a –export 6E8A8EB6 >> sec_key.asc

About billy

Senior IT Technician working in Edinburgh, Scotland.
This entry was posted in Linux, Microsoft, Personal, Wordpress and tagged , , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>