encryption failed: No dirmngr

2023-03-29 Thread Fourhundred Thecat via Gnupg-users
Hello, I am getting this error: $ gpg --lock-never --no-verbose --batch --yes --pinentry-mode loopback -e -r 'n...@domain.com' -o zz.gpg zz gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory gpg: connecting dirmngr at '/var/lib/asterisk/.gnupg/S.dirmngr' failed: No

Re: symmetric encryption of '[stdin]' failed

2022-10-15 Thread Fourhundred Thecat via Gnupg-users
> On 15/10/2022 14.36, Robert J. Hansen via Gnupg-users wrote: Why does gpg-agent interject itself into symmetric encryption at all? Where in that command line do you specify a passphrase? You don't. gpg-agent is getting fired up in order to ask you what passphrase to use for the symmetric

symmetric encryption of '[stdin]' failed

2022-10-15 Thread Fourhundred Thecat via Gnupg-users
Hello, I am trying to pipe output of tar command to gpg, and encrypt symmetrically: tar --zstd -cf - zz/ | gpg -c -o /tmp/zz.tar.zstd.gpg this fails with following errors: gpg: problem with the agent: Inappropriate ioctl for device gpg: error creating passphrase: Operation cancelled

gpg --list-packets asks for passphrase

2022-09-20 Thread Fourhundred Thecat via Gnupg-users
Hello, when I do: "gpg --list-packets file.gpg" on public key encrypted file, I am asked for passphrase. I am asking gpg to display info about encrypted message, not to decrypt it. Why am I prompted for passphrase? thank you, ___ Gnupg-users

Re: use text pinentry in the console

2022-02-23 Thread Fourhundred Thecat via Gnupg-users
> On 2022-02-23 08:40, jman wrote: I think you can set that with an env var in your ~/.bashrc: export PINENTRY_USER_DATA=ncurses and the pinentry chooser will be `/usr/bin/pinentry-ncurses`. As a further option, I use the basic `tty` pinentry chooser and I set this in my ~/.bashrc: export

Re: use text pinentry in the console

2022-02-23 Thread Fourhundred Thecat via Gnupg-users
> On 2022-02-23 11:40, Klaus Ethgen wrote: Am Di den 22. Feb 2022 um 17:28 schrieb Fourhundred Thecat via Gnupg-users: How can I confugure so that the ncurses (text based) dialog is used instead ? You should be able to call it this way: env -u DISPLAY gpg -c foo that works! thank

Re: use text pinentry in the console

2022-02-22 Thread Fourhundred Thecat via Gnupg-users
> On 2022-02-23 07:05, Fourhundred Thecat via Gnupg-users wrote: > On 2022-02-22 18:57, john doe via Gnupg-users wrote: On 2/22/2022 5:28 PM, Fourhundred Thecat via Gnupg-users wrote: $ update-alternatives --config pinentry What I would like to achieve is, that only when I call go

Re: use text pinentry in the console

2022-02-22 Thread Fourhundred Thecat via Gnupg-users
> On 2022-02-22 18:57, john doe via Gnupg-users wrote: On 2/22/2022 5:28 PM, Fourhundred Thecat via Gnupg-users wrote: How can I confugure so that the ncurses (text based) dialog is used instead ? I am using gpg 2.2.12 on Debian 10 On Debian you need to use: $ update-alternatives --con

use text pinentry in the console

2022-02-22 Thread Fourhundred Thecat via Gnupg-users
Hello, when I type a gpg command in the terminal, such as: gpg -c foo the GUI pinentry dialog pops up to ask for password (I guess its pinentry-gtk-2) How can I confugure so that the ncurses (text based) dialog is used instead ? I am using gpg 2.2.12 on Debian 10 thank you

Re: decrypt aes256 encrypted file without gpg-agent

2020-06-30 Thread Fourhundred Thecat
> On 2020-06-30 13:27, Ralph Seichter via Gnupg-users wrote: * Fourhundred Thecat: Show us a body of your work which proves you have the necessary skills to critique the GnuPG authors' work. Until you do, your "judgment" is moot. An idea should be considered on its own merit.

Re: decrypt aes256 encrypted file without gpg-agent

2020-06-30 Thread Fourhundred Thecat
> On 2020-06-30 12:26, Ralph Seichter via Gnupg-users wrote: * Fourhundred Thecat: I am basing my judgment on universal principles, that apply not only to gpg or other software, but design of any systems in general. Universal principles, oh my. In other words, you don't know nearly eno

Re: decrypt aes256 encrypted file without gpg-agent

2020-06-30 Thread Fourhundred Thecat
> On 2020-06-30 08:55, Ralph Seichter via Gnupg-users wrote: * Fourhundred Thecat: What insight do you have in the design and development of GnuPG; in its goals and restrictions? There is a difference between you not liking something for a personal reason, and objectively "bad desi

Re: decrypt aes256 encrypted file without gpg-agent

2020-06-29 Thread Fourhundred Thecat
> On 2020-06-29 19:16, Ralph Seichter via Gnupg-users wrote: I am protesting the fact, that gpg can no longer be used without the agent. Whining about a design detail of free software? Get a grip. There are more examples of bad design. In fact, gpg epitomizes a perfect anti-UNIX design.

Re: decrypt aes256 encrypted file without gpg-agent

2020-06-29 Thread Fourhundred Thecat
> On 2020-06-29 14:42, Dmitry Alexandrov wrote: Fourhundred Thecat <400the...@gmx.ch> wrote: I am protesting the fact, that gpg can no longer be used without the agent. Yet you have not described the reason behind it so far, have you? Why are you sure, that the issue, that make

Re: decrypt aes256 encrypted file without gpg-agent

2020-06-29 Thread Fourhundred Thecat
> On 2020-06-28 21:47, Ingo Klöcker wrote: On Freitag, 26. Juni 2020 09:33:15 CEST Fourhundred Thecat wrote: I have file encrypted with symmetric cipher (aes256) and not signed. How can I decrypt it without using gpg agent ? Use openssl. Or another simple program offering symmet

Re: decrypt aes256 encrypted file without gpg-agent

2020-06-28 Thread Fourhundred Thecat
> On 2020-06-28 22:24, Robert J. Hansen wrote: I remember a time, when gpg was a simple, cleanly design utility that worked. GnuPG adopted gpg-agent in large part to clean up GnuPG's design. GnuPG was introduced in GnuPG 1.9.0, released in August *2003*. You've ignored GnuPG development for

Re: decrypt aes256 encrypted file without gpg-agent

2020-06-28 Thread Fourhundred Thecat
> On 2020-06-28 16:07, Werner Koch wrote: On Fri, 26 Jun 2020 09:33, Fourhundred Thecat said: How can I decrypt it without using gpg agent ? You can't the agent is a cornerstone of gpg and is thus required. I thought the agent is for manipulating the private key. But why do I n

decrypt aes256 encrypted file without gpg-agent

2020-06-26 Thread Fourhundred Thecat
Hello, I have file encrypted with symmetric cipher (aes256) and not signed. How can I decrypt it without using gpg agent ? I get these errors: $ gpg -d file.gpg gpg: failed to start gpg agent ... gpg: decryption failed: no secret key as I said above, there is no secret key involved here. It

decrypt file in batch mode

2019-11-08 Thread Fourhundred Thecat
Hello, I have a file which has been encrypted with a symmetric cipher (using a passphrase). How can I decrypt this file in batch mode, without gpg-agent ? $ gpg --lock-never --no-verbose --batch --yes -d zz.gpg gpg: AES256 encrypted data gpg: failed to start agent '/usr/bin/gpg-agent': No such

Re: encrypt file in batch mode

2019-11-04 Thread Fourhundred Thecat
On 04/11/2019 17.12, Werner Koch wrote: > On Mon, 4 Nov 2019 16:49, Fourhundred Thecat said: >> Imagine the authors of "cat" or "ls" decided that these utilities no > > Separation of duties is an important part of the Unix philosophy. Thus > we use gp

Re: encrypt file in batch mode

2019-11-04 Thread Fourhundred Thecat
On 04/11/2019 12.34, Werner Koch wrote: > On Sun, 3 Nov 2019 08:31, Fourhundred Thecat said: > >> $ gpg --list-secret-keys >> gpg: can't connect to the agent: No such file or directory >> gpg: failed to start agent '/usr/bin/gpg-agent': No such file or directory > &g

Re: encrypt file in batch mode

2019-11-03 Thread Fourhundred Thecat
On 03/11/2019 07.52, Tony Lane via Gnupg-users wrote: > On 11/3/19 1:24 AM, Fourhundred Thecat wrote: > >> But it makes no sense. This particular private key has no passphrase. So >> shouldn't signing work in batch mode as well ? > Are you sure? Try to --edit-key and select t

Re: encrypt file in batch mode

2019-11-03 Thread Fourhundred Thecat
On 02/11/2019 22.52, Brian C via Gnupg-users wrote: > I can answer why the passphrase is needed: You are using the -s option > which tells gpg to sign the file, which requires your private key. You are right. It works when I remove "-s". But it makes no sense. This particular private key has no

Re: encrypt file in batch mode

2019-11-02 Thread Fourhundred Thecat
On 02/11/2019 16.51, Tony Lane via Gnupg-users wrote: > On 11/2/19 10:35 AM, Fourhundred Thecat wrote: > >> how can I simply encrypt a file in "batch mode", ie in a script, without >> user interaction, without need for the user to type password, without >>

encrypt file in batch mode

2019-11-02 Thread Fourhundred Thecat
Hello, how can I simply encrypt a file in "batch mode", ie in a script, without user interaction, without need for the user to type password, without gpg agent? Below are the errors that I get when running: $ gpg --lock-never -e -s -r u...@domain.com --output zz zz.gpg What is the reason why

Re: gpg on read-only filesystem

2019-10-27 Thread Fourhundred Thecat
On 22/10/2019 17.54, Friedhelm Waitzmann wrote: > A solution for the verify use case: Just read the manual > () > and use “--no-auto-check-trustdb”. thanks, but using the

gpg on read-only filesystem

2019-10-20 Thread Fourhundred Thecat
Hello, how can I use gpg without agent ? Also, how can I use gpg as root, when / is mounted read-only? I understand the advantages of gpg agent, and I am happily using it as user on my desktop. But, on my remote server , I don't want to use any agent. I don't need any program remembering my

Re: gnupg on read-only filesystem

2017-10-11 Thread Fourhundred Thecat
> On 2017-10-10 15:48, Daniel Kahn Gillmor wrote: > > You could try the following: > > export GNUPGHOME=$(mktemp -d) > gpg -d file.gpg > rm -rf "$GNUPGHOME" thank you, that works. But it still starts the gpg-agent. How can I use gpg without the agent ?

gnupg on read-only filesystem

2017-10-10 Thread Fourhundred Thecat
Hello, I am using gnupg 2.1.18-6 on Debian Stretch. My root partition (/) is mounted read-only and I cannot use gpg as root, because gpg wants to start gpg-agent and write to /root/.gnupg/ ie: gpg -d file.gpg gpg: error creating keybox '/root/.gnupg/pubring.kbx': Read-only file system