[thelist] PHP encrypting data with gnupg
Peter Loron
peterl at standingwave.org
Fri Feb 6 13:28:21 CST 2004
I set up a fake home directory for the .gnupg directory to live, that
holds the keyring and that has permissions set for my Apache user to
read and write.
-Pete
Jacques Capesius wrote:
> Hi folks,
>
> I'm trying to make a php script that creates a file, saves it, then encrypts
> the file using gnupg. sounds simple enough.
>
> For the encryption, I'm trying to use a technique similar to that described
> at..
>
> http://www.zend.com/zend/tut/tutorial-brogdon.php
>
> ...in that from PHP, I'm using:
> echo shell_exec("gpg -e -r recipient at there.com /my/path/filename");
>
> the problem I'm having is that this doesn't seem to be working. I'm not
> seeing /my/path/filename.gpg (which is what's supposed to happen) being
> created anywhere. At least nowhere that I can find...
>
> Furthermore, when I do this same command from the linux shell:
> gpg -e -r recipient at there.com /my/path/filename
> it works every time, without prompting me for any additional input.
>
> Does anyone have any idea as to what could be going wrong and how i might
> fix it?
>
> Thanks in advance for any advice you can offer.
>
> -jacques :)
More information about the thelist
mailing list