Re: encrypt file in batch mode

2019-11-05 Thread Aleksandar Lazic via Gnupg-users
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 useca

Re: encrypt file in batch mode

2019-11-05 Thread Werner Koch via Gnupg-users
On Mon, 4 Nov 2019 18:10, Tony Lane said: > was made with the unix philosophy in mind. Perhaps it would've been > better to write the gpg-agent as a shared library to be called by the > core instead. Well, we're probably too far down down the rabbit hole The process boundary has security advanta

Re: encrypt file in batch mode

2019-11-04 Thread Tony Lane via Gnupg-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 11/4/19 11:12 AM, Werner Koch via Gnupg-users wrote: > Separation of duties is an important part of the Unix philosophy. Thus > we use gpg-agent to handle the operations which require private keys and > also for some minor things which benefit fr

Re: encrypt file in batch mode [ ref:_00D58dJQM._5004Iusfvy:ref ]

2019-11-04 Thread Informa D&B via Gnupg-users
Exmos. Senhores, Recebemos a informação que tiveram hoje a amabilidade de nos transmitir e que muito agradecemos. Vamos imediatamente analisar o caso e responderemos com a máxima brevidade possível ao vosso pedido. Assim que for possível, o Serviço de Apoio ao Cliente entrará em contacto convo

Re: encrypt file in batch mode [ ref:_00D58dJQM._5004IuslU0:ref ]

2019-11-04 Thread Informa D&B via Gnupg-users
Exmos. Senhores, Recebemos a informação que tiveram hoje a amabilidade de nos transmitir e que muito agradecemos. Vamos imediatamente analisar o caso e responderemos com a máxima brevidade possível ao vosso pedido. Assim que for possível, o Serviço de Apoio ao Cliente entrará em contacto convo

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 gpg-agent to handle the operations which require

Re: encrypt file in batch mode

2019-11-04 Thread Werner Koch via Gnupg-users
On Mon, 4 Nov 2019 16:49, Fourhundred Thecat said: > Yes, that is exactly the problem. Why should simple operations require > gpg agent ? The manual has a chapter on the architecture, please read it to understand the design goals and how it was implemented nearly 20 years ago. > Imagine the aut

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 > > Your system is not properly ins

Re: encrypt file in batch mode

2019-11-04 Thread Werner Koch via Gnupg-users
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 Your system is not properly installed. It is missing the gpg-agent which is a m

Re: encrypt file in batch mode [ ref:_00D58dJQM._5004IusOTU:ref ]

2019-11-03 Thread Informa D&B via Gnupg-users
Exmos. Senhores, Recebemos a informação que tiveram hoje a amabilidade de nos transmitir e que muito agradecemos. Vamos imediatamente analisar o caso e responderemos com a máxima brevidade possível ao vosso pedido. Assim que for possível, o Serviço de Apoio ao Cliente entrará em contacto convo

Re: encrypt file in batch mode [ ref:_00D58dJQM._5004IusPVR:ref ]

2019-11-03 Thread Informa D&B via Gnupg-users
Exmos. Senhores, Recebemos a informação que tiveram hoje a amabilidade de nos transmitir e que muito agradecemos. Vamos imediatamente analisar o caso e responderemos com a máxima brevidade possível ao vosso pedido. Assim que for possível, o Serviço de Apoio ao Cliente entrará em contacto convo

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 that key (not the cert k

Re: encrypt file in batch mode

2019-11-02 Thread Tony Lane via Gnupg-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 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 that key (not the cert key). Then pa

Re: encrypt file in batch mode

2019-11-02 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 p

Re: encrypt file in batch mode [ ref:_00D58dJQM._5004IusLVX:ref ]

2019-11-02 Thread Informa D&B via Gnupg-users
Exmos. Senhores, Recebemos a informação que tiveram hoje a amabilidade de nos transmitir e que muito agradecemos. Vamos imediatamente analisar o caso e responderemos com a máxima brevidade possível ao vosso pedido. Assim que for possível, o Serviço de Apoio ao Cliente entrará em contacto convo

Re: encrypt file in batch mode

2019-11-02 Thread Brian C via Gnupg-users
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. Brian On 11/2/19 11:14 AM, Fourhundred Thecat wrote: > On 02/11/2019 16.51, Tony Lane via Gnupg-users wrote: >> On 11/2/19 10:35 AM, Fourhundred Thecat wrote:

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 >> gpg agent? > > gpg --batch --yes --passphr

Re: encrypt file in batch mode

2019-11-02 Thread Tony Lane via Gnupg-users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 11/2/19 10:35 AM, Fourhundred Thecat wrote: > 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? Assuming you're using gpg 2.2.