I had a hell of a time getting pgp to work some time ago, but I finally did,
and I reckon I still have the scripts somewhere. Up in a heap atm, but I'll
have a look around this evening.
adam
___________________________
BEECHER.NET - ICT Services
http://beecher.net/
> -----Original Message-----
> From: cork-bounces at linux.ie [mailto:cork-bounces at linux.ie] On
> Behalf Of Dave Mulligan
> Sent: 11 March 2005 09:21
> To: cork at linux.ie> Subject: [CLUG] GnuPG via PHP
>> Guy's, I'm trying to use GnuPG via a PHP script to encrypt a
> plain text file.
>> I got the following script
>> <?php
> $gpg = "/usr/local/bin/gpg";
> $homeDir = "~user1";
> $email = "valid at email.add";
> $file = "/tmp/file1.txt";
>> $cmd = "${gpg} --always-trust --keyring
> ${homeDir}/.gnupg/pubring.gpg -e -r ${email} ${file}";
> echo $cmd;
> system($cmd);
> ?>
>> However, the encrypted file is not been generated!
> Permissions on the user's homedir, .gnupg directory and
> pubring.gpg are set correctly as I successfully ran the above
> generated command (from command line) as
> user2 which encrypted the file correctly.
>>> Any ideas?
>> Thanks,
> Dave.
> _______________________________________________
> Cork mailing list
>Cork at linux.ie>http://www.linux.ie/mailman/listinfo/cork>
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!