GPG Lost Secret Key

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite
1












Earlier on today I decided to backup my laptop and re-install everything. I thought I backed up the GPG keys correctly but it turns out I only exported my public key.



I understand that I can't get that key back as I failed to back it up correctly.



My question though is, can I re-generate a new secret key and assign it to the public key exported earlier? or should I just create another key/pair but then I would have 3 keys on my PC the old public key and then the new generated keys each would have the same name and email address - Is this the correct thing to do?










share|improve this question







New contributor




John McDonnell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Do you have a revocation certificate for the old key?
    – Stephen Kitt
    7 mins ago










  • I would create another key pair (but someone might know a better solution). -- For the future I would suggest that you get a better method to backup your system, so that you will 'automatically' get everything relevant backed up. For example, I have my personal data in a data partition, that I back up at the file level. It means that the linux system in the root file system, /, is rather small and easy to back up to a compressed image with Clonezilla.
    – sudodus
    7 mins ago











  • No I don't, I only copied across the exported public key before wiping the old install.
    – John McDonnell
    4 mins ago














up vote
0
down vote

favorite
1












Earlier on today I decided to backup my laptop and re-install everything. I thought I backed up the GPG keys correctly but it turns out I only exported my public key.



I understand that I can't get that key back as I failed to back it up correctly.



My question though is, can I re-generate a new secret key and assign it to the public key exported earlier? or should I just create another key/pair but then I would have 3 keys on my PC the old public key and then the new generated keys each would have the same name and email address - Is this the correct thing to do?










share|improve this question







New contributor




John McDonnell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Do you have a revocation certificate for the old key?
    – Stephen Kitt
    7 mins ago










  • I would create another key pair (but someone might know a better solution). -- For the future I would suggest that you get a better method to backup your system, so that you will 'automatically' get everything relevant backed up. For example, I have my personal data in a data partition, that I back up at the file level. It means that the linux system in the root file system, /, is rather small and easy to back up to a compressed image with Clonezilla.
    – sudodus
    7 mins ago











  • No I don't, I only copied across the exported public key before wiping the old install.
    – John McDonnell
    4 mins ago












up vote
0
down vote

favorite
1









up vote
0
down vote

favorite
1






1





Earlier on today I decided to backup my laptop and re-install everything. I thought I backed up the GPG keys correctly but it turns out I only exported my public key.



I understand that I can't get that key back as I failed to back it up correctly.



My question though is, can I re-generate a new secret key and assign it to the public key exported earlier? or should I just create another key/pair but then I would have 3 keys on my PC the old public key and then the new generated keys each would have the same name and email address - Is this the correct thing to do?










share|improve this question







New contributor




John McDonnell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











Earlier on today I decided to backup my laptop and re-install everything. I thought I backed up the GPG keys correctly but it turns out I only exported my public key.



I understand that I can't get that key back as I failed to back it up correctly.



My question though is, can I re-generate a new secret key and assign it to the public key exported earlier? or should I just create another key/pair but then I would have 3 keys on my PC the old public key and then the new generated keys each would have the same name and email address - Is this the correct thing to do?







gpg






share|improve this question







New contributor




John McDonnell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




John McDonnell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




John McDonnell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 28 mins ago









John McDonnell

101




101




New contributor




John McDonnell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





John McDonnell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






John McDonnell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











  • Do you have a revocation certificate for the old key?
    – Stephen Kitt
    7 mins ago










  • I would create another key pair (but someone might know a better solution). -- For the future I would suggest that you get a better method to backup your system, so that you will 'automatically' get everything relevant backed up. For example, I have my personal data in a data partition, that I back up at the file level. It means that the linux system in the root file system, /, is rather small and easy to back up to a compressed image with Clonezilla.
    – sudodus
    7 mins ago











  • No I don't, I only copied across the exported public key before wiping the old install.
    – John McDonnell
    4 mins ago
















  • Do you have a revocation certificate for the old key?
    – Stephen Kitt
    7 mins ago










  • I would create another key pair (but someone might know a better solution). -- For the future I would suggest that you get a better method to backup your system, so that you will 'automatically' get everything relevant backed up. For example, I have my personal data in a data partition, that I back up at the file level. It means that the linux system in the root file system, /, is rather small and easy to back up to a compressed image with Clonezilla.
    – sudodus
    7 mins ago











  • No I don't, I only copied across the exported public key before wiping the old install.
    – John McDonnell
    4 mins ago















Do you have a revocation certificate for the old key?
– Stephen Kitt
7 mins ago




Do you have a revocation certificate for the old key?
– Stephen Kitt
7 mins ago












I would create another key pair (but someone might know a better solution). -- For the future I would suggest that you get a better method to backup your system, so that you will 'automatically' get everything relevant backed up. For example, I have my personal data in a data partition, that I back up at the file level. It means that the linux system in the root file system, /, is rather small and easy to back up to a compressed image with Clonezilla.
– sudodus
7 mins ago





I would create another key pair (but someone might know a better solution). -- For the future I would suggest that you get a better method to backup your system, so that you will 'automatically' get everything relevant backed up. For example, I have my personal data in a data partition, that I back up at the file level. It means that the linux system in the root file system, /, is rather small and easy to back up to a compressed image with Clonezilla.
– sudodus
7 mins ago













No I don't, I only copied across the exported public key before wiping the old install.
– John McDonnell
4 mins ago




No I don't, I only copied across the exported public key before wiping the old install.
– John McDonnell
4 mins ago










1 Answer
1






active

oldest

votes

















up vote
0
down vote













Your old private key is gone so about all your old public key is good for is 'legacy' usage. (i.e. you won't be doing anything new with it but it could be used to verify anything previously signed, for example) Going forward, everything would be based on your new private/public key pair which have no relation to your old keys.





share




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );






    John McDonnell is a new contributor. Be nice, and check out our Code of Conduct.









     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f475305%2fgpg-lost-secret-key%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    Your old private key is gone so about all your old public key is good for is 'legacy' usage. (i.e. you won't be doing anything new with it but it could be used to verify anything previously signed, for example) Going forward, everything would be based on your new private/public key pair which have no relation to your old keys.





    share
























      up vote
      0
      down vote













      Your old private key is gone so about all your old public key is good for is 'legacy' usage. (i.e. you won't be doing anything new with it but it could be used to verify anything previously signed, for example) Going forward, everything would be based on your new private/public key pair which have no relation to your old keys.





      share






















        up vote
        0
        down vote










        up vote
        0
        down vote









        Your old private key is gone so about all your old public key is good for is 'legacy' usage. (i.e. you won't be doing anything new with it but it could be used to verify anything previously signed, for example) Going forward, everything would be based on your new private/public key pair which have no relation to your old keys.





        share












        Your old private key is gone so about all your old public key is good for is 'legacy' usage. (i.e. you won't be doing anything new with it but it could be used to verify anything previously signed, for example) Going forward, everything would be based on your new private/public key pair which have no relation to your old keys.






        share











        share


        share










        answered 4 mins ago









        blihp

        2668




        2668




















            John McDonnell is a new contributor. Be nice, and check out our Code of Conduct.









             

            draft saved


            draft discarded


















            John McDonnell is a new contributor. Be nice, and check out our Code of Conduct.












            John McDonnell is a new contributor. Be nice, and check out our Code of Conduct.











            John McDonnell is a new contributor. Be nice, and check out our Code of Conduct.













             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f475305%2fgpg-lost-secret-key%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay