GnuPG (GPG) For Dummies! - Setting Up a Keychain
For this tutorial we will be using Debian 8 OS for this guide.
Windows users can download the binaries from and add them to their PATH
For Linux users this should be preinstalled.

Let's start!

GPG works via a keychain consisting of a public key and private key or a lock and key.
This public key can be compared to a lock which is accessable by everyone i.e the lock makers name etc.
The private key is obviously compared to the key which opens the said lock and is not accessable by everyone.

Open up a terminal (you have use the GPA package in your repositories to use GPG with a GUI)
Enter :
gpg --gen-key
The defaults should be good for everyday use.

4098 keys are said to be not worth making since they offer a tiny amount of extra security compared to 2048
I use a 4098 key but the end choice is yours of you want a 2048 or a 4098 key.

Select 0 to keep your key vaild forever

Check the details and enter: Y

Now should be prompted by a real name field, enter your full name here
Next you must enter Your primary email.

After GPG has finished the key will be added to the trustdb and set as owner trust.
GPG will also prompt that there is no key for Encryption

Now enter
Your should see something like
pub  4096R/6AA15948  created: 2009-05-10  expires: never       usage: SC
                    trust: ultimate      validity: ultimate
Copy the hash after the / (6AA15948)
Now type
gpg --edit-key 0xYOURKEY
gpg --edit-key 0x6AA15948

Type in again
Select option 6
A 2048 key for Encryption is fine...
I recommend setting the expiry to 10 years
Enter all the required fields and create
At the end type

MIT hosts a public key server so we will send your public key there.

gpg --keyserver --send-key YOURK€Y
gpg --keyserver --send-key 6AA15948

[Image: img.php?userid=19870&txt=1]

A huge shoutout to GalaxyHostPlus for the stellar OpenVZ VPS
Follow me on Mastodon
View me on IRC @SlashNET

There's also gpg2 for a newer version if anyone does want that.
hi, I'm tmwc.
I'm not active here anymore.

Users browsing this thread: 1 Guest(s)