Re: Finding all files encrypted with a certain key

2023-10-25 Thread Felix E. Klee
On Wed, Oct 25, 2023 at 9:23 PM Werner Koch wrote: > > gpg: decryption failed: No secret key > > > > I wonder how to get rid of that. > > grep -v on stderr ;-). Thanks, I was thinking about that. But I think simply using find, as suggested by Andrew and raf, is sufficient and simple. > I thi

Re: Finding all files encrypted with a certain key

2023-10-25 Thread Jacob Bachmeyer via Gnupg-users
raf via Gnupg-users wrote: [...] While testing these, I just noticed that /usr/bin/file on my macOS-10.14 laptop shows a different keyid to what libmagic shows. That's bizarre. For some encrypted files of mine, /usr/bin/file (v5.33) shows 3A0FC449 817C22BA but libmagic/rh shows 49C40F3A BA227C81

Re: Pinentry problem with different home dir

2023-10-25 Thread Michael Richardson
Werner Koch via Gnupg-users wrote: > On Wed, 25 Oct 2023 13:01, Falko Strenzke said: >> Can anyone give me an advice what I can try to get the GnuPG Agent >> pinentry working with different home directory specified via >> GNUPGHOME? > Run it this way: > mkdir /foo/bar c

Re: Finding all files encrypted with a certain key

2023-10-25 Thread Werner Koch via Gnupg-users
Hi, hit the sent key combination by accident. The last para should have read: I think it is time to make things like this easier. Actually re-encrypt support has been on our feature list for many years. Every time I want to tackle this I stop at the decision on whether to also handle the large

Re: Finding all files encrypted with a certain key

2023-10-25 Thread Werner Koch via Gnupg-users
On Wed, 25 Oct 2023 10:54, Felix E. Klee said: > Thank you! I modified that a bit, to make it more readable to me and fix > a little bug: The second `$1` doesn’t expand to the file name. Also, I Upoi caught me, I didn't test the posted version. > gpg: decryption failed: No secret key > > I w

Re: Pinentry problem with different home dir

2023-10-25 Thread Werner Koch via Gnupg-users
On Wed, 25 Oct 2023 13:01, Falko Strenzke said: > Can anyone give me an advice what I can try to get the GnuPG Agent > pinentry working with different home directory specified via > GNUPGHOME? Run it this way: mkdir /foo/bar cd /foo/bar GNUPGHOME=`pwd` gpg-agent --daemon ~/bin/gnupg-setup-tests

Re: Finding all files encrypted with a certain key

2023-10-25 Thread raf via Gnupg-users
On Wed, Oct 25, 2023 at 11:01:30AM +0800, "Felix E. Klee" wrote: > On Tue, Oct 24, 2023 at 5:12?PM Andrew Gallagher > wrote: > > GNU `file` will print the encryption key ID: > > Interesting. I wonder if there is any disadvantage of using `file` over > Werner's proposal. I don't think so. The

Pinentry problem with different home dir

2023-10-25 Thread Falko Strenzke
I am trying to run GnuPG with a different home directory by setting the environment variable GNUPGHOME. However, in that case, for instance when trying to generate a key, in that case I get the error gpg: DBG: chan_4 <- ERR 67108949 No pinentry gpg: agent_genkey failed: No pinentry Key generat