On Thu, 20 Jul 2017 20:04, di...@webweaving.org said: > cat batch.commands | gpg2 --no-tty —batch —passphrase-XX XX > --command-fd 0 --pinentry-mode loopback …
This is not going to work. --command-fd must always be used in conjunction with --status-fd so that a GET_foo status line output triggers input to the command fd descriptor. > And then let the batch.commands (which does a complex dance of subkey renewal > and some chip card shuffling) run against that ? Please check wether some of the new --quick-foo commands can be helpful. > Or to somehow use a pure TTY based pinentry in such a setting (it is an off > line machine with barely more than a serial connection). GnuPG has examples on how to write simple pinentries (/tests/fake-pinentries/). Based on such an example and with the envvar PINENTRY_USER_DATA you can provide passphrases or PINs to gpg-agent. Shalom-Salam, Werner -- Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
pgps8J2W1D7vE.pgp
Description: PGP signature
_______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users