signing files from php script

Juan Antonio Martinez Juan Antonio Martinez <jantonio@dit.upm.es>
Mon, 22 Jan 2001 14:12:18 +0100 (CET)


On Mon, 22 Jan 2001, Derek Vokey wrote:


> Date: Mon, 22 Jan 2001 08:01:42 -0800
> From: Derek Vokey <turfdog@planetturf.ca>
> To: jantonio@dit.upm.es
> Subject: Re: signing files from php script
>
> try
>
> $pipe = "/usr/bin/gpg -o output_file --homedir path/to/gnupg";
> $fd=popen($pipe,"w");
> fwrite($fd,$msg);
> fclose($fd);
It doesn't work... my problem is that gpg allways ask me for a passphrase and cannot find any valid way to provide it from a apache/php3 script. perhaps via a "dummy program..." but seems to me not a very good way to do the right thing... Juan Antonio \|||/ / _ _ \ \ o o / =========================o00o===U===o00o====================================== Juan Antonio Martinez Universidad Politecnica de Madrid email: jantonio@dit.upm.es E.T.S.I Telecomunicacion http://www.dit.upm.es/~jantonio Ciudad Universitaria s/n Tel: 34-1-3367366 ext 416 Laboratorio de Programación. Desp A-127-2 Fax: 34-1-3367333 28040 Madrid, Spain ============================================================================== Windows98: a 32 bit graphical front end to a 16 bit patch on an 8 bit operating system written for a 4 bit processor by a 2 bit company without 1 bit of decency... -- Archive is at http://lists.gnupg.org - Unsubscribe by sending mail with a subject of "unsubscribe" to gnupg-users-request@gnupg.org