From aacdd3b2ccf3c845afe319d403c7aa834ae93c6e Mon Sep 17 00:00:00 2001 From: Asmir A Date: Wed, 15 Nov 2023 16:42:42 +0100 Subject: [PATCH] post: start post about gpg publik key usage --- .../blog/2023-11-15-using_gpg_public_key.md | 25 +++++++++++++++++++ content/blog/_index.md | 9 +++++++ 2 files changed, 34 insertions(+) create mode 100644 content/blog/2023-11-15-using_gpg_public_key.md create mode 100644 content/blog/_index.md diff --git a/content/blog/2023-11-15-using_gpg_public_key.md b/content/blog/2023-11-15-using_gpg_public_key.md new file mode 100644 index 0000000..c0f3cbd --- /dev/null +++ b/content/blog/2023-11-15-using_gpg_public_key.md @@ -0,0 +1,25 @@ ++++ +title = "Using GPG Public Key" ++++ + +GNU Privacy Guart (GPG) is an pupular two factor encrytpion system often used for signing or encrypting emails, files or even git commits. +This post foruces on using provided public key to check signature validity for files signed using complementary public key. + +## Importing Key +One way to keep prublic keys is by using a keyserver such as _hkps://keyserver.ubuntu.com_. +To import key with ID **3BDD542C9B0BE180D5802DFF020C42B7A9ABA3E2** from _hkps://keyserver.ubuntu.com_ keyserver +issue command: +```bash +$ gpg2 --keyserver hkps://keyserver.ubuntu.com --recv-key 3BDD542C9B0BE180D5802DFF020C42B7A9ABA3E2 +``` +It's also possible to use "short" ID by using only the last 8 digits of hexadecimal +ID representation, in our case **A9ABA3E2** - but it's discourages because of possible ID collisions. + +To search and import a key using email, example _asmir.abdulahovic@gmail.com_ issue command: +```bash +$ gpg2 --keyserver hkps://keyserver.ubuntu.com \ + --search-keys "asmir.abdulahovic@gmail.com" +``` + +Note **hkps** protocol selection acts simmilary as **https** for **http**, +prefferably use it to avoid **MITM** and other attacks. diff --git a/content/blog/_index.md b/content/blog/_index.md new file mode 100644 index 0000000..a04d3f5 --- /dev/null +++ b/content/blog/_index.md @@ -0,0 +1,9 @@ ++++ +paginate_by = 15 +path = "blog" +title = "All blog posts" +sort_by = "date" +page_template = "blog-page.html" ++++ + +> List of all *[tags](/tags)* \ No newline at end of file