Accidentally deleted ~/.gnupg/pubring.gpg

renws renws at
Sat Aug 8 13:58:43 CEST 2020


I tried --try-all-secrets but it didn't work:

$ gpg -d --try-all-secrets myfile.txt.gpg
gpg: encrypted with RSA key, ID xxxxxxxxxxxxx
gpg: decryption failed: No secret key

I guess I'll have to create a new public key with the same fingerprint? I've searched "gpg create public key with same fingerprint" but didn't get much luck. Could you please provide more detailed how-to instructions?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Gnupg-users mailing list