GNuPG - GPG , OpenPGP standard

Mihir SuratwalaMihir Suratwala
2 min read

Last Blog Review

In the last blog we understood, what is a LAMP Stack & how does it work, how do you install on Linux distribution and advantage of using this Stack.

GNuPG - GPG ?

It’s a free and open source implementation of the OpenPGP standard for data encryption and digital signatures. It is widely used for having Secure Shell connections without password or any means of interactive authenticate, which improves security level

How do you export your public key

You need to make your public key freely accessible, but not share your private key. Below is the command to export your public key

gpg --armor --export EMAIL_ADDRESS > public_key.asc

where the EMAIL_ADDRESS is the email address associated with your public key.

Next search for the 8 digit string (primary id) associated with the key you want to export. Then use below command

gpg --send-keys PRIMARY_ID

here the PRIMARY_ID is the actual ID of that key.

So, the public key is available in the key server and is publicly available.

Create and use a GNuPG key

  1. First of all install haveged using below command

     sudo apt-get install haveged
    

    To speed up the random byte process, then run beloe commands

     gpg --gen-keys
     gpg --list-keys
    

    It should show below kind of result

     pub 2048D/NNNNNNNN 2019-2-3
     uid                Name <abc@alphabet.org>
     sub 2048D/xxxxxxxx 2019-2-3
    
  2. Publish

     gpg --keyserver pgp.abc.org --send-keys NNNNNNNN
    

Conclusion →

In the this blog we understood, what is GNuPG key, how to make the public key accessible and how to create and use a GNuPG key.

💡
That’s a wrap for today’s post! I hope this has given you some valuable insights. Be sure to explore more articles on our blog for further tips and advice. See you in the next post!

Image Credit →

https://share.google/images/iNpNkZ39la4QwOYNC

0
Subscribe to my newsletter

Read articles from Mihir Suratwala directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Mihir Suratwala
Mihir Suratwala

Hi, How are you !! Hope you doing good.... I got introduced to Cloud initially. As I went ahead learning what is cloud and how it works, then got to know a field which is DevOps that makes Cloud model more effective. So, as I started working & got good experience on AWS. I have been learning the DevOps tool and technologies on how to use it with the Cloud, which will give me good understanding on how Cloud and DevOps go hand in hand to deploy my applications.