Problem trying to automate decrypt option
Gabi
gabi at idieikon.com
Thu Oct 18 08:34:13 CEST 2012
Thanks but both of them does not work, the dialog is ever shown, using
gpg2.exe or gpg.exe.
If I write gpg2.exe --help (or gpg.exe --help) the command or option
--passphrase is not shown anywhere.
I'm using windows version. Is that a feature not available in windows
version?
(And yes storing in a task is a bad idea, is not the final solution, but
only a way to automate a process we'll do in another way but meanwhile...)
Regards.
-----Mensaje original-----
De: David Tomaschik [mailto:david at systemoverlord.com]
Enviado el: jueves, 18 de octubre de 2012 1:33
Para: Gabi
CC: gnupg-users at gnupg.org
Asunto: Re: Problem trying to automate decrypt option
Have you tried --passphrase "myPassword" or --passphrase-fd 0 (with the
pipe)?
(Standard statement about how storing the passphrase in a scheduled
task is a bad idea, etc.)
David
On Wed, Oct 17, 2012 at 5:56 AM, Gabi <gabi at idieikon.com> wrote:
> We want to automate the decrypt process in some file with a task in the
> operating system (Windows 7 64)
>
> What we want to do is from command line is: gpg2.exe --decrypt file.gpg >
> result.txt Of course it works ok, but launch pinentry.exe, a dialog box to
> ask for the password of the certificate.
>
> So we use a pipeline to send the password to gpg2 like this:
>
> echo "myPassword" | gpg2.exe --decrypt file.gpg > result.txt
>
> But this does not work.
>
>
> One possible workaround is that once we have put the password in the
> pinentry.exe dialog, we can decrypt again WITHOUT using the password and
> after some time (some minutes) gpg2.exe ask us for a password again.(For
> example after writing password if we run the same bat with the same
command
> it does not ask us for a password...in some minutes at least)
>
> So there could be 2 possible solutions we don't know how to implement.
> 1) A way to send the password to the dialog, the command echo "myPassword"
|
> gpg2.exe --decrypt file.gpg > result.txt was supposed to work, we find it
in
> a forum, but it does not work.
> 2) Can we change the time it ask again for the password? Where? How? If we
> can set it to, for example 1 year, the we can run the command, type the
> password in the dialog box and use the same command in a daily task and
> it'll work until next year...
>
>
> Has anybody an answer for 1) or 2)? Any of them will solve the problem...
>
> Regards.
>
>
>
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users at gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users
--
David Tomaschik
OpenPGP: 0x5DEA789B
http://systemoverlord.com
david at systemoverlord.com
More information about the Gnupg-users
mailing list