Automated processes

Raphaël Poss gnupg at raphael.poss.name
Fri Apr 7 09:56:58 CEST 2006


jkaye wrote:
> Hi all,
> 
> I'm new to GnuPG, and have been getting some help
> from a kind soul.  I seem to have all the knowledge 
> that I need with one single, but important, exception.
> 
> When I decrypt, it asks for my passphrase.  No problem
> there except for the fact that I want to have an automated
> script on a unix server perform the decryption of this file.
> Of course, if it needs a passphrase, it's going to hang
> and I can't have that.
> 
> I know that for PGP, there's an environment setting that
> can be used to prevent this.  Is there a similar thing for
> GnuPG, or do I have to jump through some hoops?  

You can:

- use gpg-agent, or

- echo passphrase | gpg --batch --passphrase-fd 0

Of course the latter provides little to no security.

Regards,

-- 
Raphaël

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: OpenPGP digital signature
Url : /pipermail/attachments/20060407/9ad1eba0/signature.pgp


More information about the Gnupg-users mailing list