Re: WINDOWS - Adding passphrase to gpg via command line

2015-05-11 Thread flapflap
Josh Clearihan: > Hi, > > Thanks, but our requirement is that the key is secured with a passphrase. > > Any other ideas into what is wrong with my coding? > echo "mypassphrase"| gpg2.exe ... In my opinion it makes little sense to use a passphrase in this way: the passphrase is supposed to be e

Re: WINDOWS - Adding passphrase to gpg via command line

2015-05-11 Thread Josh Clearihan
Hi, Thanks, but our requirement is that the key is secured with a passphrase. Any other ideas into what is wrong with my coding? Cheers Josh Clearihan Senior Systems Administrator 858 Lorimer Street | PO Box 107 Port Melbourne, VIC 3207 T: 03 9644 | D: 03 9644 6899 F: 03 9644 6622

Re: SSH generic socket forwarding for gpg-agent

2015-05-11 Thread Daniel
Werner Koch gnupg.org> writes: > Are you sure that the gpg version at the remote site is also >= 2.1? > Given that you used the option "--use-agent" I assume that this is a gpg > 1.4. > > For that feature to work you need GnuPG 2.1 local and remote. The > reason is that only since 2.1 gpg diver

Re: SSH generic socket forwarding for gpg-agent

2015-05-11 Thread Werner Koch
On Mon, 11 May 2015 09:28, qu...@hack.org said: > So, on remote, "gpg --use-agent test.asc" gives me "gpg: decryption failed: > No secret key". But shouldn't this just work? Shouldn't it just get the Are you sure that the gpg version at the remote site is also >= 2.1? Given that you used the opti

Re: SSH generic socket forwarding for gpg-agent

2015-05-11 Thread Daniel
I got the forwarding working, gpg-connect-agent says "connection to agent is in restricted mode" and gives me a prompt. So am I all set? Doesn't seem like that. My GPG_AGENT_INFO is empty, as it is on my local machine where everything works as expected (once my gpg-agent is running, has a key, an

Re: WINDOWS - Adding passphrase to gpg via command line

2015-05-11 Thread MFPA
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Monday 11 May 2015 at 6:17:59 AM, in , Josh Clearihan wrote: > Requirement To automatically decrypt and encrypt files > from cmd batch file. > I'm experiencing issues trying to decrypt a .pgp file > from command line. > When running this it