LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[CLUG] GnuPG via PHP

[CLUG] GnuPG via PHP

adam beecher lists at beecher.net
Fri Mar 11 12:05:33 GMT 2005


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
> 




More information about the Cork mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell