So, years ago I tried PGP/GPG and put my key up on the public keyservers.
And then promptly lost the private key data. Lather, rinse, repeat, and now there are like 5 old GPG/PGP identities for me up there that are gone forever and can’t be revoked.
So, it’s 2024, and I think “I have a NAS I do regular backups and test restores on. Surely I can keep my private key data safe and secure now”.
So I get GPG going, create my keys, and then, not knowing any better? copy my entire $HOME/.gnupg directory to my NAS.
The goal here is for me to be able to use the same private key across all the machines I use. There are several.
But when I copy down that directory, GPG refuses to “see” it. gpg --list-secret-keys prints - Nothing.
Thanks in advance!
Privacy has become a very important issue in modern society, with companies and governments constantly abusing their power, more and more people are waking up to the importance of digital privacy.
In this community everyone is welcome to post links and discuss topics related to privacy.
[Matrix/Element]Dead
much thanks to @gary_host_laptop for the logo design :)
https://unix.stackexchange.com/questions/481939/how-to-export-a-gpg-private-key-and-public-key-to-a-file
Does this help?
Hey I just want to thank you for this. It did indeed do exactly what I wanted! I think in the past when I’d tried to export my secret key I musn’t have used the right parameters because I could never import it, but when I follow this guide I can!
So now I can just store plaintext private and public keys on my private NAS and import them on any machine where they’re needed and I’m good to go!
Good old internet anonymous tech support. Love to see it.