Re: scripting gpg

2011-05-06 Thread Jon Drukman
On Wed, May 4, 2011 at 5:44 PM, Jerome Baum wrote: > On Thu, May 5, 2011 at 02:19, Jon Drukman wrote: > >> putenv('HOME=/tmp/gpg'); >> @mkdir('/tmp/gpg'); >> > > At this point, you should be watching carefully. What if another user has > cre

Re: scripting gpg

2011-05-04 Thread Jon Drukman
David Shaw jabberwocky.com> writes: > You're looking for the "--trust-model always" option. Add that to your options, and the trust model > becomes "if it's on my keyring, it's fully trusted". It's up to you to make sure that only keys that are fully > trusted are on your keyring, of course. :

scripting gpg

2011-05-04 Thread Jon Drukman
I need to do the following: - when a new machine is created, automatically import a public key and give it full trust - be able to encrypt files with that public key without any interactive prompting (from a shell script/cron job) in other words, a machine has to go from virgin state (OS + softw

Newbie Q: decryption

2007-02-26 Thread Jon Drukman
A company I'm getting a data feed from sent me a public key and an encrypted file. I want to decrypt it, but I don't know I'm doing. My naive approach is not working: $ gpg --homedir=/var/httpd/keyring --decrypt upc.xml.pgp gpg: WARNING: using insecure memory! gpg: please see http://www.gnupg.