Re: Accidentally deleted ~/.gnupg/pubring.gpg

2020-08-18 Thread renws via Gnupg-users
It worked, and it was much easier than I expected, thank you so much! WS ‐‐‐ Original Message ‐‐‐ On Monday, August 17, 2020 6:31 PM, Werner Koch wrote: > On Sun, 16 Aug 2020 04:33, renws said: > > > And I don't have any backup of my public key, so I would like to know > > whether it's

Re: Accidentally deleted ~/.gnupg/pubring.gpg

2020-08-17 Thread Werner Koch via Gnupg-users
On Sun, 16 Aug 2020 04:33, renws said: > And I don't have any backup of my public key, so I would like to know > whether it's possible to decrypt my files (I've still got > ~/.gnupg/private-keys-v1.d, which I think stores my private key?). If you just want to decrypt your files, you can do this:

Re: Accidentally deleted ~/.gnupg/pubring.gpg

2020-08-16 Thread renws via Gnupg-users
accidentally deleted ~/.gnupg/pubring.gpg and now I'm not able to see any output from `gpg --list-keys' and `gpg --list-secret-keys'. And I don't have any backup of my public key, so I would like to know whether it's possible to decrypt my files (I've still got ~/.gnupg/private-keys-v1.d, which I think

Re: Accidentally deleted ~/.gnupg/pubring.gpg

2020-08-08 Thread renws via Gnupg-users
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 x 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

Re: Accidentally deleted ~/.gnupg/pubring.gpg

2020-07-12 Thread Werner Koch via Gnupg-users
On Sat, 11 Jul 2020 13:33, MFPA said: > If the OP just wants to decrypt previously encrypted data, wouldn't > the options --try-secret-key or --try-all-secrets work in this > situation? Yes, I think this should work. Have not looked into it, though. Salam-Shalom, Werner -- Die

Re: Accidentally deleted ~/.gnupg/pubring.gpg

2020-07-11 Thread MFPA via Gnupg-users
Hi On Thursday 9 July 2020 at 9:19:39 AM, in , Werner Koch via Gnupg-users wrote:- > Even the fingerprint will be > different because > the creation date is part of the fingerprint > computation. If the OP just wants to decrypt previously encrypted data, wouldn't the options

Re: Accidentally deleted ~/.gnupg/pubring.gpg

2020-07-10 Thread Ángel
On 2020-07-09 at 10:19 +0200, Werner Koch via Gnupg-users wrote: > If you know the fingerprint it is of course easy to find the creation > date; that are at worst a mere 710 million hashes (from 1998 to now). > it is just that we don't have the tooling. To make things easier I > will > probably

Re: Accidentally deleted ~/.gnupg/pubring.gpg

2020-07-09 Thread Werner Koch via Gnupg-users
On Tue, 7 Jul 2020 22:22, Stefan Claas said: > Mmmhhh, I was under the impression when he still has the secret key that > he exports his secret-key (makes a back-up, just in case) re-imports The gpg-agent does not store the OpenPGP secret keyblock. It fact that is only created when you run a

Re: Accidentally deleted ~/.gnupg/pubring.gpg

2020-07-07 Thread Stefan Claas
Stefan Claas wrote: > Werner Koch via Gnupg-users wrote: > > > On Mon, 6 Jul 2020 09:58, renws said: > > > > > Thanks for your reply. However I've never uploaded the public key to > > > any keyservers, is it possible to recover the public key from the > > > private key (I still have

Re: Accidentally deleted ~/.gnupg/pubring.gpg

2020-07-07 Thread Stefan Claas
Werner Koch via Gnupg-users wrote: > On Mon, 6 Jul 2020 09:58, renws said: > > > Thanks for your reply. However I've never uploaded the public key to > > any keyservers, is it possible to recover the public key from the > > private key (I still have ~/.gnupg/private-keys-v1.d)? > > If you

Re: Accidentally deleted ~/.gnupg/pubring.gpg

2020-07-07 Thread Werner Koch via Gnupg-users
On Mon, 6 Jul 2020 09:58, renws said: > Thanks for your reply. However I've never uploaded the public key to > any keyservers, is it possible to recover the public key from the > private key (I still have ~/.gnupg/private-keys-v1.d)? If you really can't find a backup of the public key you can

Re: Accidentally deleted ~/.gnupg/pubring.gpg

2020-07-06 Thread renws via Gnupg-users
Hi Michał, Thanks for your reply. However I've never uploaded the public key to any keyservers, is it possible to recover the public key from the private key (I still have ~/.gnupg/private-keys-v1.d)? Regards, Wenshan ___ Gnupg-users mailing list

Re: Accidentally deleted ~/.gnupg/pubring.gpg

2020-07-05 Thread Michał Górny via Gnupg-users
On Sun, 2020-07-05 at 14:30 +, renws via Gnupg-users wrote: > Hi, > > I've accidentally deleted ~/.gnupg/pubring.gpg and now I'm not able to see > any output from `gpg --list-keys' and `gpg --list-secret-keys'. > > Is it possible to still use my private key to decrypt pr

Accidentally deleted ~/.gnupg/pubring.gpg

2020-07-05 Thread renws via Gnupg-users
Hi, I've accidentally deleted ~/.gnupg/pubring.gpg and now I'm not able to see any output from `gpg --list-keys' and `gpg --list-secret-keys'. Is it possible to still use my private key to decrypt previously encrypted .gpg files? Are private keys stored in ~/.gnupg/private-keys-v1.d ? If so