dmshaw / paperkey

Print an OpenPGP key on paper for archive and recovery
GNU General Public License v2.0
194 stars 12 forks source link

Private Key Recovery #13

Open cps64 opened 3 months ago

cps64 commented 3 months ago

I have four files and I want to recover the private key so I can import the private key back into the gpg keyring. Whsn I do a gpg --list-keys and key is in the keyring but I need to change the key to expire or revoke it. If I try to revoke or edit the key I get a Need the secret key to do this message.

.christopher_72969D3E.private-key-paper.txt .christopher_72969D3E.private-master-key .christopher_72969D3E.private-master-key.txt .christopher_72969D3E.public-master-key.txt

I assume the .christopher_72969D3E.public-master-key.txt file is my public key and the .christopher_72969D3E.private-master-key.txt is the private key. The .christopher_72969D3E.private-master-key is a binary file.

I ran the following commands:

paperkey --pubring .christopher_72969D3E.public-master-key.txt --secrets .christopher_72969D3E.private-key-paper.txt --output christopher_72969D3E.private-key.gpg Error: unable to parse OpenPGP packets (is this armored data?)

cp .christopher_72969D3E.public-master-key.txt christopher_72969D3E.public-key.gpg

paperkey --pubring christopher_72969D3E.public-key.gpg --secrets .christopher_72969D3E.private-key-paper.txt --output christopher_72969D3E.private-key.gpg Error: unable to parse OpenPGP packets (is this armored data?)