Accidentally deleted ~/.gnupg/pubring.gpg

renws renws at protonmail.com
Sat Aug 8 13:58:43 CEST 2020


Hi,

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?

Regards,
WS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20200808/9cdace19/attachment.html>


More information about the Gnupg-users mailing list