GnuPG (GPG) For Dummies! - Setting Up a Keychain
#1
For this tutorial we will be using Debian 8 OS for this guide.
Windows users can download the binaries from http://gpg4win.org 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 :

Code:
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

Code:
gpg--list-keys

Your should see something like

Code:
pub  4096R/6AA15948  created: 2009-05-10  expires: never       usage: SC
                     trust: ultimate      validity: ultimate

Copy the hash after the / (6AA15948)
Now type

Code:
gpg --edit-key 0xYOURKEY

Eg,

Code:
gpg --edit-key 0x6AA15948


Type in again

Code:
addkey

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

Code:
save


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

Code:
gpg --keyserver pgp.mit.edu --send-key YOURK€Y

Eg

Code:
gpg --keyserver pgp.mit.edu --send-key 6AA15948


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

Thanks to FREEVPS.us  for VPS 14
A huge shoutout to @F7N for the steller cPanel Hosting
Follow me on Mastodon
View me on IRC @SlashNET

[url=https://7ob.pw/FreeVPS/?userid=19870][/url]
#2
There's also gpg2 for a newer version if anyone does want that.
I usually don't go on this forum and post any more - you can find me on LET Discord server if you care :p (username is tilda)




Users browsing this thread: 1 Guest(s)

Switch to mobile version

Sponsors: Ftpit - ZXPlay - GalaxyHostPlus - Verelox- HostUS - Host4Fun - Evolution-Host - NodeBlade - HostDare - VPSMost


BitCoin donations: 1DQxbstaTb5SWk6QC2gFeQUTFR64JX4cEo