Under Centos 5 I ran this command: gpg --passphrase-file /home/myuser/pass_phrase.txt -c ../Versions/program.x86_64.tgz
and this worked fine.
On CentOS 6 running the same command prompts me for the passphrase.
Thats exactly what I dont want to have happen. I have the pass phrase I want in the file.
After some searching it says I need to start the daemon like "gpg-agent --daemon" take the output: GPG_AGENT_INFO=/tmp/gpg-x4WH7K/S.gpg-agent:19156:1; export GPG_AGENT_INFO; and use it - which I did.
Then when I run my command above I still get prompted for the pass phrase.
What am I not doing correct?
I just want a simple phrase on a file that someone has to know before they can extract it. Nothing special going on....
Thanks,
Jerry
On Sun, 21 Aug 2011, Jerry Geis wrote:
Under Centos 5 I ran this command: gpg --passphrase-file /home/myuser/pass_phrase.txt -c ../Versions/program.x86_64.tgz
and this worked fine.
On CentOS 6 running the same command prompts me for the passphrase.
Thats exactly what I dont want to have happen. I have the pass phrase I want in the file.
After some searching it says I need to start the daemon like "gpg-agent --daemon" take the output: GPG_AGENT_INFO=/tmp/gpg-x4WH7K/S.gpg-agent:19156:1; export GPG_AGENT_INFO; and use it - which I did.
Then when I run my command above I still get prompted for the pass phrase.
What am I not doing correct?
I just want a simple phrase on a file that someone has to know before they can extract it. Nothing special going on....
Thanks,
Jerry
From the man page:
"...Note that this passphrase is only used if the option --batch has also been given."
On Sun, 21 Aug 2011, Jerry Geis wrote:
/ From the man page:
/ "...Note that this passphrase is only used if the option --batch has also been given."
Mike,
Thanks - that does work. I was thinking "too hard" and thought it was something with the gpg-agent.
Thanks
Jerry
I'm certainly no gpg expert but I had a similar issue that was *finally* solved by using --batch.
I also meant to mention from what I can tell in CentOS6 gpg is really gpg2. Notice that "/usr/bin/gpg" is really "/usr/bin/gpg -> gpg2". I mention this because in various places as I searched I noticed phrases like "This is different from gpg". What? Now I understand, I'm now using gpg2 and never knew it...