Tuesday 16 July 2019

How to renewal GPG keys

Step1 : list the gpg keys

[root@sankar]# gpg --list-keys
/root/.gnupg/pubring.gpg
------------------------
pub   1024D/1F8EKKRW 2016-04-16
uid                  dev-BACKUP (For dev Servers backup) <sankar@xxxx.com>
sub   2048g/78B5KER5 2016-04-16


Step2: take backup of keys

Pub key:-
[root@sankar]#gpg --output sankar_Profile_Encryption2019.gpg --armor --export 1F8EKKRW


Secret key/Private Key:-
[root@sankar]#gpg --output sankar_Profile_Encryption2019_sec.gpg --armor --export-secret-key 1F8EKKRW


Step3: Edit the key
[sai@sankar]$ gpg --edit-key 1F8EKKRW
gpg (GnuPG) 1.4.5; Copyright (C) 2006 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.


gpg> expire

Changing expiration time for the primary key.

Please specify how long the key should be valid.

         0 = key does not expire

        = key expires in n days

      w = key expires in n weeks

      m = key expires in n months

      y = key expires in n years

Key is valid for? (0)            ///enter for my case

Is this correct? (y/N) y



gpg>save




Note: if you need to specific years, you need to specify like 2year/3years

7 comments:

  1. Good blog post information
    Sanjary Kids is one of the best play school and preschool in Hyderabad,India. Give your child the best preschool experience by choosing the best playschool of Hyderabad in Abids. we provide programs like Play group,Nursery,Junior KG,Senior KG,and provides Teacher Training Program.
    Preschool teacher training course in hyderabad

    ReplyDelete
  2. Great blog updated information provided I liked it

    Sanjary Academy is the best Piping Design institute in Hyderabad, Telangana. It is the best Piping design Course in India and we have offer professional Engineering Courses like Piping design Course, QA/QC Course, document controller course, Pressure Vessel Design Course, Welding Inspector Course, Quality Management Course and Safety Officer Course.
    best Piping Design Course
    piping design course with placement
    Piping Design Course
    Piping Design Course in Hyderabad ­
    Piping Design Course in India­
    best Piping Design institute
    best institute of Piping Design Course in India

    ReplyDelete
  3. Excellent blog posting informative and understandable

    Pressure Vessel Design Course is one of the courses offered by Sanjary Academy in Hyderabad. We have offer professional Engineering Course like Piping Design Course,QA/QC Course,document Controller course,pressure Vessel Design Course,Welding Inspector Course, Quality Management Course, Safety officer course.
    Welding Inspector Course
    Safety officer course
    Quality Management Course
    Quality Management Course in India

    ReplyDelete
  4. According to Stanford Medical, It is really the one and ONLY reason this country's women live 10 years more and weigh an average of 19 KG lighter than us.

    (By the way, it is not related to genetics or some secret-exercise and EVERYTHING related to "HOW" they eat.)

    P.S, What I said is "HOW", and not "WHAT"...

    CLICK this link to see if this quick test can help you decipher your real weight loss potential

    ReplyDelete
  5. Nice and good article. It is very useful for me to learn and understand easily. Thanks for sharing
    AWS Online Training Hyderabad
    Best AWS Online Course

    ReplyDelete