[last updated: 2023-07-11]
GnuPG encryption home page
-----
This page still in development ...
- See below for Fingerprint.
and link to Revocation Certificate.
-------------------------------------------------
- Do you have any keys defined/installed on this computer?
- $ gpg --list-keys --keyid-format LONG [ optional search parameter ]
- This command will list all the keys that you've generated on or imported into your computer.
- The search parameter can be the email associated with the key, the comment (or some keyword substring) from your comment field,
either short or long key id from either your public or private key, ... or blank.
- Command output will be of the form:
pub rsa3072/CF6182CBCA2B4D43 2023-07-07 [SC] [expires: 2023-07-14]
D7CDDD102502B7E2280F8976CF6182CBCA2B4D43
uid [ultimate] jrabe1 (GPG-1) <jayrabe1@hotmail.com>
sub rsa3072/C30A196DFC99D170 2023-07-07 [E] [expires: 2023-07-14]
- The "pub" defines the first line as your public key.
- The "CF6..." following the first rsa3072 is your 16-hex-char "long key id."
This is the last 16-hex-chars of the fingerprint
- The last half of that, the 8-hex-char "CA2B4D43" is your "short key id."
This is the last 8-hex-chars of the fingerprint
- The "[SC]" denotes this (pub) key as a "signing" and "certification" key
- The "uid" defines your "user id", with the trust value in brackets, then your "real name", the comment field in parentheses, and your email.
- The "D7CDDD..." is your 40-hex-char fingerprint
- The "sub" defines a sub-key, with the 16-hex-char following rsa3072 again being your long key id.
- The "[E]" defines this sub-key as your "encryption" key.
- If the key has expired, then no "sub" ie. secret key will be listed.
- $ gpg --list-secret-keys --keyid-format long
returns exactly the same thing, except the first line is labeled "sec" instead of "pub",
and the last line is labeled "ssb" instead of "sub",
but everything else in the output is identical.
----------------------------
- Edit details of a key with this:
$ gpg --edit-key [ key ID ]
-------------------------------------------------
- Generate public and private keys - Three methods:
See: https://itslinuxfoss.com/generate-pgp-keys-with-gpg/
-------------------------------------------------
- Revocation certificate:
If your "private key becomes known to others, then you will need to disassociate the old keys from your identity."
The revocation certificate allows you to do that.
As such it is a powerful tool and must be guarded carefully.
----------------------------------------
- Generate a Fingerprint:
-------------------------------------------------