encrypt file in batch mode

Aleksandar Lazic al-gnupg_users at none.at
Tue Nov 5 21:33:53 CET 2019


Hi.

Am 02.11.2019 um 15:35 schrieb 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?

Maybe you can try https://github.com/jedisct1/encpipe for such a simple usecase?

> Below are the errors that I get when running:
> 
> $ gpg --lock-never -e -s -r user at domain.com --output zz zz.gpg
> 
> What is the reason why simple operations should not be possible without
> gpg-agent ?
> 
> gpg: starting migration from earlier GnuPG versions
> gpg: failed to start agent '/usr/bin/gpg-agent': No such file or directory
> gpg: can't connect to the agent: No such file or directory
> gpg: error: GnuPG agent unusable. Please check that a GnuPG agent can be
> started.
> gpg: migration aborted
> gpg: failed to start agent '/usr/bin/gpg-agent': No such file or directory
> 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
> gpg: can't connect to the agent: No such file or directory
> gpg: keydb_search failed: No agent running
> gpg: no default secret key: No agent running
> gpg: gpg.conf.gpg: sign+encrypt failed: No agent running
> 
> my version: gpg (GnuPG) 2.2.12
> 
> thanks,
> 
> 
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users at gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users
> 




More information about the Gnupg-users mailing list